06.08.2012, 23:46
That didn't fix it ![Sad](images/smilies/sad.gif)
Also my /arrest cmd:
CMD:arrest(playerid, params[])
{
new sendingname[MAX_PLAYER_NAME], string[160];
new rank = PlayerInfo[playerid][pLSPD];
if(rank < 1) return SCM(playerid, COLOR_GREY, "You are not authorized to use this command.");
{
if(IsPlayerInRangeOfPoint(playerid, 3.0,1525.3658,-1677.8115,5.8906)) return SCM(playerid, COLOR_LIGHTBLUE, "You are not at an arrest point.");
{
new giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arrest [playerid]");
if(IsPlayerConnected(giveplayerid))
{
PlayerInfo[giveplayerid][pArrests]++;
SendClientMessage(playerid, COLOR_YELLOW, "You succesfully arrested the suspect, you were awarded $5000 for your hard work.");
SetPlayerPos(giveplayerid, 227.6157,110.7703,999.0156);
SetPlayerInterior(giveplayerid, 10);
SendClientMessage(giveplayerid, COLOR_BLUE, "You were arrested, you are now in jail.");
GivePlayerCash(playerid, 5000);
format(string, sizeof(sendingname),"*%s has arrested %s.",sendingname, params);
SendLSPDMessage(COLOR_LIGHTBLUE, string);
}
}
return 1;
}
}
How can I make it so you must be at the point since I can arrest anyone anywhere
![Sad](images/smilies/sad.gif)
Also my /arrest cmd:
CMD:arrest(playerid, params[])
{
new sendingname[MAX_PLAYER_NAME], string[160];
new rank = PlayerInfo[playerid][pLSPD];
if(rank < 1) return SCM(playerid, COLOR_GREY, "You are not authorized to use this command.");
{
if(IsPlayerInRangeOfPoint(playerid, 3.0,1525.3658,-1677.8115,5.8906)) return SCM(playerid, COLOR_LIGHTBLUE, "You are not at an arrest point.");
{
new giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arrest [playerid]");
if(IsPlayerConnected(giveplayerid))
{
PlayerInfo[giveplayerid][pArrests]++;
SendClientMessage(playerid, COLOR_YELLOW, "You succesfully arrested the suspect, you were awarded $5000 for your hard work.");
SetPlayerPos(giveplayerid, 227.6157,110.7703,999.0156);
SetPlayerInterior(giveplayerid, 10);
SendClientMessage(giveplayerid, COLOR_BLUE, "You were arrested, you are now in jail.");
GivePlayerCash(playerid, 5000);
format(string, sizeof(sendingname),"*%s has arrested %s.",sendingname, params);
SendLSPDMessage(COLOR_LIGHTBLUE, string);
}
}
return 1;
}
}
How can I make it so you must be at the point since I can arrest anyone anywhere