Kill a player in a specific place
#3

pawn Код:
public OnPlayerDeath(playerid,kilerid,reason)
{
if(IsPlayerInArea(killerid,minx,maxx,miny,maxy)
{
Kick(killerid);//Ban(..)
}
}
pawn Код:
public IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    if (x > minx && x < maxx && y > miny && y < maxy) return 1;
    return 0;
}
Reply


Messages In This Thread
Kill a player in a specific place - by cruising - 09.01.2012, 12:49
Re: Kill a player in a specific place - by Lorenc_ - 09.01.2012, 12:54
Re: Kill a player in a specific place - by FarSe. - 09.01.2012, 12:58
Re: Kill a player in a specific place - by cruising - 09.01.2012, 14:16
Re: Kill a player in a specific place - by Konstantinos - 09.01.2012, 14:20
Re: Kill a player in a specific place - by cruising - 09.01.2012, 14:28
Re: Kill a player in a specific place - by Konstantinos - 09.01.2012, 15:30
Re: Kill a player in a specific place - by cruising - 09.01.2012, 15:54

Forum Jump:


Users browsing this thread: 1 Guest(s)