Thread: setarmour issue
View Single Post
Old 19/06/2013, 07:33 AM   #3
DaTa[X]
Banned
 
Join Date: Aug 2012
Posts: 371
Reputation: 39
Default Re: setarmour issue

pawn Code:
dcmd_setarmour(playerid, params[])
{
    new id;
    new Float:amount;
    new string[70];
    if(sscanf(params,"uf",id,amount)) return SendClientMessage(playerid,COLOR_ERROR, "Usage: /setarmour [ID] [AMOUNT]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_ERROR,"This player is not connected.");
    else
    {
    SetPlayerArmour(id,amount);
    format(string,sizeof(string),"{FF0000}[ADMIN] {FFFFFF}%s[%d] has set %s[%d]'s armour to %0.2f.",PlayerName(playerid),playerid,PlayerName(id),id,amount);
    SendClientMessageToAll(COLOR_WHITE,string);
    return 1;
    }
}
DaTa[X] is offline   Reply With Quote