Help! with string number
#2

pawn Code:
CMD:ajail(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF4646FF, "You are not authorized to use that command !");

    new otherid;
    if(sscanf(params, "u", otherid)) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /ajail [PlayerID/PartOfName] [Time(minutes)] [Reason]");
    if(otherid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xAFAFAFAA, "Invalid Player ID");

    SetPlayerPos(otherid, 1769.37341309, 178.79183960, 1369.28161621);

    new name[MAX_PLAYER_NAME], string[64];

    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "* You been Admin jailed by Admin %s.", name);
    SendClientMessage(otherid, 0xFF4646FF, string);

    GetPlayerName(otherid, name, sizeof(name));
    format(string, sizeof(string), "* You Jailed %s.", name);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    return 1;
}
Reply


Messages In This Thread
Help! with string number - by [MKD]Max - 01.10.2010, 07:48
Re: Help! with string number - by Finn - 01.10.2010, 09:49
Re: Help! with string number - by [MKD]Max - 01.10.2010, 10:25

Forum Jump:


Users browsing this thread: 1 Guest(s)