03.07.2011, 20:24
I suggest to use Incognito's streamer, it has a great area detection system.
pawn Код:
public OnPlayerEnterDynamicArea(playerid, areaid) // I think this is how it goes, I forgot ^^
{
if(areaid == ADMIN_AREA)
{
if(IsPlayerAdmin(playerid)) // If he's admin
{
SendClientMessage(playerid, -1, "Welcom admin!");
}
else SendClientMessage(playerid, -1, "You have 5 seconds to get the fuck out!"), SetTimerEx("KillNoob", 5000, false, "i", playerid);
}
return 1;
}
forward KillNoob(playerid);
public KillNoob(playerid)
{
return SetPlayerHealth(playerid, 0.0); // Or do whatever you want to that noob
}