/tazer and /r help
#5

That didn't fix it

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
Reply


Messages In This Thread
/tazer and /r help - by RLGaming - 06.08.2012, 23:10
Re: /tazer and /r help - by sampplayer12 - 06.08.2012, 23:14
Re: /tazer and /r help - by RLGaming - 06.08.2012, 23:15
Re: /tazer and /r help - by you10 - 06.08.2012, 23:20
Re: /tazer and /r help - by RLGaming - 06.08.2012, 23:46
Re: /tazer and /r help - by =WoR=G4M3Ov3r - 07.08.2012, 00:44
Re: /tazer and /r help - by sampplayer12 - 08.08.2012, 23:31

Forum Jump:


Users browsing this thread: 1 Guest(s)