16.03.2014, 00:20
So i made a command but it dosent do anything
whats the problem i am getting the x y z of the player that is near but nothing works
here is my code
whats the problem i am getting the x y z of the player that is near but nothing works
here is my code
pawn Код:
if(Civilian[id] == 1)
{
if(Cuffed[id] == 1)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(id,X,Y,Z);
if(IsPlayerInRangeOfPoint(playerid,2.0,X,Y,Z))
{
if(pwl >= 4)
{
GivePlayerMoney(playerid, 3000);
IncreaseScore(playerid, 1);
IncreaseCoprank(playerid, 1);
Jailed[id] = 1;
JailTime[id] = 60;
Cuffed[id] = 0;
SetPlayerInterior(id, 6);
SetPlayerPos(id, 264.29999, 77.4, 1001);
SendClientMessage(id, COLOR_LIGHTBLUE, "**LOS SANTOS PRISON**");
SendClientMessage(id, COLOR_LIGHTBLUE, "[PRISON] You have been sent to prison, you will be out of prison in 60 seconds");
SetPlayerWantedLevel(id, 0);
SetPlayerHealth(id,99999);
SetPlayerSpecialAction(id,SPECIAL_ACTION_NONE);
ResetPlayerWeapons(id);
format(string,sizeof(string),"Police Officer %s(%d) Has arrested wanted suspect %s(%d) and was given $3000 for arresting him.",GetName(playerid),playerid,GetName(id),id);
SendClientMessageToAll(COLOR_ORANGE,string);
return 1;
}
}
}
}