public OnPlayerSpawn(playerid)
{ GameTextForPlayer(playerid,"~k~Have a nice game",3000,4);
return 1;
}
-------------
public OnPlayerDeath(playerid, killerid, reason)
{ GameTextForPlayer(playerid,"~k~Haha you die",3000,4);
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[128];
format(string, sizeof(string), "You are entering vehicle %i",vehicleid);
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[128];
format(string, sizeof(string), "You are entering vehicle %i",vehicleid);
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
Maybe add link and "we" can help you?@StyleRxd I didn't mean that..
@0x688
I have found a tutorial about hooking by using the detours 1.5 lib but I don't get it howto include that into my project, plz help
Can someone give me an example of hooking the "GameTextForPlayer"-function? I would like to get the content of its pushed parameters.
char *text; //set your text.... like: "~r~imma 1337 nigger~w~!"
int time; //time to show the text(in ms)... like: 1000ms(1sec)
int textsize; //size... like: 5 for example
uint32_t DoneAddr = g_dwSAMP_Addr/*BaseAddress*/ + 0x63F00/*0.3xR1*/;
__asm
{
push textsize
push time
push text
call DoneAddr
}
@25ghz:
nonetheless I solved this problem 2 months ago, this has nothing to do with hooking? ^^
Can someone give me an example of hooking the "GameTextForPlayer"-function? I would like to get the content of its pushed parameters.
maybe I wasn't clear enough
by hooking I mean intercepting the function call and change it's behavior
using this I can change the parameters, or just do nothing etc.