[Off] Identificando uma GangZone.
#9

pawn Код:
IsPlayerInFavela(playerid)
{
//Adicione isto ao final de seu gm
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    if(x >= 2029.868 && y >= -1125.23 && x <= 2284.658&& y <= -963.3729) return 1;
    else return 0;
}
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(!IsPlayerInFavela(playerid))
    {
        GivePlayerMoney(killerid, -500);
        SendClientMessage(killerid,-1,"Vocк perdeu 500 por matar fora da gangzone!");
    }
    return 1;
}
Reply


Messages In This Thread
Identificando uma GangZone. - by Ley - 30.05.2013, 17:21
Re: Identificando uma GangZone. - by -GooGle- - 30.05.2013, 17:33
Re: Identificando uma GangZone. - by Ley - 30.05.2013, 17:38
Re: Identificando uma GangZone. - by -GooGle- - 30.05.2013, 17:45
Re: Identificando uma GangZone. - by AlucardSnow - 30.05.2013, 17:46
Re: Identificando uma GangZone. - by Ley - 30.05.2013, 17:50
Re: Identificando uma GangZone. - by -GooGle- - 30.05.2013, 17:51
Re: Identificando uma GangZone. - by Ley - 30.05.2013, 17:58
Re: Identificando uma GangZone. - by -GooGle- - 30.05.2013, 18:00
Re: Identificando uma GangZone. - by Ley - 30.05.2013, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)