Auto-Kill for a certain gang zone.
#1

Hello guys. Tody i thought i could make a auto-kill for my clan base. This is how i did it:

Код:
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);
}
}
But i don't know why it doesn't work. Can somebody tell me whats the problem?
Reply


Messages In This Thread
Auto-Kill for a certain gang zone. - by Shetch - 25.02.2011, 12:18
Re: Auto-Kill for a certain gang zone. - by Calgon - 25.02.2011, 12:20
Re: Auto-Kill for a certain gang zone. - by deather - 25.02.2011, 12:22

Forum Jump:


Users browsing this thread: 2 Guest(s)