19.09.2016, 04:52
my code
i am having a problem that when ever i enter the area it kill me.but i want that if player enter the checkpoint and press KEY_NO Then it will check that if player is in area and in the team and then kill him please help me
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_NO) && PlayerRobberyData[playerid][RobberyTimer] != -1) Robbery_ResetPlayer(playerid, 1);
if(IsPlayerInArea(playerid, 1047.743652, 1843.581420, 1128.563842, 1942.294799))
{
if(gTeam[playerid] == TEAM_EURASIA)
{
new str[100];
format(str, sizeof(str),""cgreen"%s - "cred"Base Rape",(playerid));
SetPlayerHealth(playerid,0);
GameTextForPlayer(playerid,"~y~Base Rape Is Not Allowed", 3000, 3);
}
}
return 1;
}


