08.06.2012, 19:13
Hello guys i want to create an include that has OnPlayerConnect and my GM already has it so how do i hook eachother
What?Every gamemode has OnPlayerConnect,even the filterscripts,what you're trying to do?
|
Hook:blahblahyoucanputwhateveryoulikehere_OnPlayerConnect(playerid)
{
// Your shit
return 1;
}
public blahblah_OnPlayerConnect(playerid)
{
// Your shit
return CallLocalFunction("blahblah_OnPlayerConnect", "i", playerid); // Hooking method
}
#if defined _ALS_OnPlayerConnect
#undef OnPlayerConnect
#else
#define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect blahblah_OnPlayerConnect
forward blahblah_OnPlayerConnect(playerid);