Arrest per Keyboard
#9

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
new pid;
if(IsPlayerCop(playerid))
if(newkeys == KEY_CROUCH)
{
new Float: x, Float:y, Float:z;
GetPlayerPos(pid, x,y,z);
for(new i=-1; i<MAX_PLAYERS, i++)
{
       if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 2, x, y, z))
       {
       Arrest(pid);
       return 1;
       }
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"Not in range!");
}
else
{
SendClientMessage(playerid,COLOR_RED,"Not a Cop!");
}
return 1;
}
Reply


Messages In This Thread
Arrest per Keyboard - by pulsare - 28.10.2017, 00:12
Re: Arrest per Keyboard - by Logic_ - 28.10.2017, 08:30
Re: Arrest per Keyboard - by pulsare - 28.10.2017, 12:59
Re: Arrest per Keyboard - by Arbico - 28.10.2017, 15:16
Re: Arrest per Keyboard - by pulsare - 28.10.2017, 15:29
Re: Arrest per Keyboard - by Bruno13 - 28.10.2017, 15:29
Re: Arrest per Keyboard - by pulsare - 28.10.2017, 16:20
Re: Arrest per Keyboard - by Logic_ - 28.10.2017, 17:10
Re: Arrest per Keyboard - by Lucases - 28.10.2017, 17:11
Re: Arrest per Keyboard - by pulsare - 28.10.2017, 18:22

Forum Jump:


Users browsing this thread: 1 Guest(s)