SA-MP Forums Archive
Given Wanteds - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Given Wanteds (/showthread.php?tid=658011)



Given Wanteds - playstores - 20.08.2018

Is there a way to save the given wanteds at /su ?

new pid,wid,reason[64];
if(sscanf(params,"uis[256]",pid,wid,reason))return SendClientMessage(playerid, COLOR_GRAD2, "Use: (/su)spect [playerid/Name] [Wantedsl] [Crime]");


I want to take the value of "wid" to another public


Re: Given Wanteds - m4karow - 20.08.2018

new gPlayerWantedLvl[MAX_PLAYERS];

CMD: suspect(playerid, params[])
{

new pid,wid,reason[64];
if(sscanf(params,"uis[256]",pid,wid,reason))
return SendClientMessage(playerid, COLOR_GRAD2, "Use: (/su)spect [playerid/Name] [Wantedsl] [Crime]");

gPlayerWantedLvl[pid] = wid;

}


Re: Given Wanteds - Sew_Sumi - 20.08.2018

Pretty sure he didn't just want a command, he wanted to know how to show it and track it, not just set their wanted level.


Re: Given Wanteds - KinderClans - 20.08.2018

I don't understand what are you asking @OP.

Do you want check the wanted level of a player by typing /su playerid? Or what?

When you guys ask something, be more specific. We're not wizards.


Re: Given Wanteds - Sew_Sumi - 20.08.2018

Along with s[256] being probably not so good an idea. There's likely no way you'd be able to get that size string to sscanf, from the input.