25.02.2011, 12:18
Hello guys. Tody i thought i could make a auto-kill for my clan base. This is how i did it:
But i don't know why it doesn't work. Can somebody tell me whats the problem?
Код:
public OnPlayerConnect(playerid) { // Auto Kill SetTimer("eStrike_AK_Timer", 1000, true); return 1; }
Код:
forward eStrike_AK_Timer(playerid); public eStrike_AK_Timer(playerid) { if (IsPlayerInAreaEx(playerid,-74.913414, -394.928070, 13.086585, -266.928070)) { new Nick[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nick, sizeof(Nick)); if(strfind(Nick, "FreSh[eS]", true) != -1 || strfind(Nick, "[eS]", true) != -1) { SetPlayerHealth(playerid,100); } } else { SetPlayerHealth(playerid,1.0); } }