Need Little Help
#1

my code
Код:
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;
}
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
Reply


Messages In This Thread
Need Little Help - by CarRamper - 19.09.2016, 04:52
Re: Need Little Help - by CarRamper - 19.09.2016, 13:09
Re: Need Little Help - by Quinncell - 19.09.2016, 13:12
Re: Need Little Help - by CarRamper - 19.09.2016, 13:21
Re: Need Little Help - by Quinncell - 19.09.2016, 13:28
Re: Need Little Help - by CarRamper - 19.09.2016, 13:31
Re: Need Little Help - by SyS - 19.09.2016, 13:42
Re: Need Little Help - by CarRamper - 19.09.2016, 13:52
Re: Need Little Help - by Quinncell - 19.09.2016, 13:54
Re: Need Little Help - by CarRamper - 19.09.2016, 13:56

Forum Jump:


Users browsing this thread: 1 Guest(s)