08.06.2012, 19:21
Quote:
What?Every gamemode has OnPlayerConnect,even the filterscripts,what you're trying to do?
|
You can either use y_hooks (part of YSI) which makes it extremely easy to hook, i.e.
pawn Код:
Hook:blahblahyoucanputwhateveryoulikehere_OnPlayerConnect(playerid)
{
// Your shit
return 1;
}
pawn Код:
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);