FAST help
#2

if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /jail <playerid/partofname>");


Please look at this link..



pawn Код:
CMD:jail(playerid,params[])
{
    new id;

    if(PlayerInfo[playerid][pAdminLevel] < 4) return SendClientMessage(playerid,COLOR_GREY,"You are not allowed to use this command!");
    {
        if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_WHITE, "[CMD] / [PlayerID/PartOfName]");
       
        new gName[MAX_PLAYER_NAME],string[128];
        GetPlayerName(id,gName,sizeof gName);
        format(string,sizeof string,"You jailed %s",gName);
        SendClientMessage(playerid,0x00ff00ff,string);
        SendClientMessage(id,0xFF0000FF,"You have been jailed by admin.");
        SetPlayerInterior(id,0);
        SetPlayerPos(id,-9.6939,2336.7288,24.3034);
        ResetPlayerWeapons(id);
    }
    return 1;
}
Reply


Messages In This Thread
FAST help - by SpiderWalk - 13.12.2011, 22:25
Re: FAST help - by [ABK]Antonio - 13.12.2011, 22:28
Re: FAST help - by N0FeaR - 13.12.2011, 22:34
Re: FAST help - by [ABK]Antonio - 13.12.2011, 22:36
Re: FAST help - by DonWade - 13.12.2011, 22:43

Forum Jump:


Users browsing this thread: 1 Guest(s)