Setwanted
#3

Quote:
Originally Posted by muhib777
Посмотреть сообщение
I can try to make it but I won't succeed can someone give me the cmd for /setwanted so you can set someones wanted level
At top:
[pawn]#include <zcmd>
#include <sscanf>[pawn]

pawn Код:
COMMAND:setwanted(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You need to be admin to use this command!");
    new Target, Level;
    if(!sscanf(params, "ui", Target, Level))
    {
        new string[128], string1[128], myname[24], targetname[24];
        GetPlayerName(playerid, myname, 24);GetPlayerName(Target, targetname, 24);
        SetPlayerWantedLevel(Target, Level);
        format(string, sizeof string, "%s changed your wanted level. ", myname);
        format(string1, sizeof string1, "You changed %s's wanted level. ", targetname);
        SendClientMessage(playerid, -1, string1);
        SendClientMessage(Target, -1, string);
    } else return SendClientMessage(playerid, -1, "Usage: /setwanted [playerid] [wanted level]");
    return 1;
}
Download sscanf : https://sampforum.blast.hk/showthread.php?tid=120356
Download ZCMD: https://sampforum.blast.hk/showthread.php?tid=91354

PLace at pawno/include
Reply


Messages In This Thread
Setwanted - by muhib777 - 15.08.2011, 14:13
Re: Setwanted - by iPLEOMAX - 15.08.2011, 14:23
Re: Setwanted - by Horrible - 15.08.2011, 14:24
Re: Setwanted - by muhib777 - 15.08.2011, 14:45
Re: Setwanted - by iPLEOMAX - 15.08.2011, 15:10
Re: Setwanted - by Darnell - 15.08.2011, 15:15

Forum Jump:


Users browsing this thread: 1 Guest(s)