Posts: 1,059
Threads: 86
Joined: Sep 2010
Reputation:
0
Well when people commit crimes, their wanted level goes up of course, but the problem is, I don't want their wanted level to be 12, 17, 25, 43 etc... I want it to stop at Wanted Level 10 as the maximum. How would I do it?
Say I was wanted level 9, stole a cop car which is worth 4 stars (wanted level 4). This would give me wanted level 13, BUT, I want it to stop at wanted level 10 and say Wanted Level 10 - Most Wanted, not Wanted Level 13 blabla...
Any ideas?
Posts: 177
Threads: 38
Joined: Mar 2011
Reputation:
0
how can we set a jail time for the players if a cop /arrest them and jail them for a period of time.only if they have 4-6 stars.
Posts: 148
Threads: 5
Joined: Jun 2011
Posts: 148
Threads: 5
Joined: Jun 2011
pawn Код:
CMD:jail(playerid, params[])
{
new id, mins, str[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xffffffff, "You're not Admin!");
if(sscanf(params, "ud", id, mins)) return SendClientMessage(playerid, 0xffffffff, "[Usage]: /jail <id> <minutes>");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xffffffff, "Invalid player id.");
SetPlayerPos(id, x, y, z); //Jail Pos
JailTimer[id] = SetTimerEx("Unjail", mins*60*1000, 0, "d", id);
format(str, sizeof(str), "You jailed %s for %d mins.", GetName(id), mins);
SendClientMessage(playerid, 0xffffffff, str);
format(str, sizeof(str), "%s jailed you for %d mins.", GetName(playerid), mins);
SendClientMessage(id, 0xffffffff, str);
return 1;
}
There but im trying not to post cde as im trying to answer ll posts on forums with only me replying ive seen so far
Posts: 177
Threads: 38
Joined: Mar 2011
Reputation:
0
can u plz show me how to use in strcmp cmds.
Posts: 148
Threads: 5
Joined: Jun 2011
EDIT: Blacklite has done i a better way