[HELP] /Adsetscore
#5

Sorry but, that code is terrible.

pawn Код:
CMD:adsetscore(playerid, params[])
{
    new id, score, Nam[MAX_PLAYER_NAME], mystring[128];
    if(!AdminLevel[playerid]) return SendClientMessage(playerid, 0xFF0000FF, "You are not an admin.");
    if (sscanf( params, "ud", id, score) ) return SendClientMessage( playerid, -1, "USAGE: /adsetscore [ID] [score]" );
    GetPlayerName(id, Nam, sizeof(Nam));
    format(mystring, sizeof mystring, "* You have set %s's score to %i.", Nam, score);
    SendClientMessage( playerid, COLOR_RED, mystring);
    SetPlayerScore(id, score);
    return 1;
}
Reply


Messages In This Thread
[HELP] /Adsetscore - by James Coral - 26.01.2012, 16:24
Re: [HELP] /Adsetscore - by Bogdan1992 - 26.01.2012, 16:50
Re: [HELP] /Adsetscore - by James Coral - 26.01.2012, 16:54
Re: [HELP] /Adsetscore - by Bogdan1992 - 26.01.2012, 16:56
Re: [HELP] /Adsetscore - by MP2 - 26.01.2012, 16:57
Re: [HELP] /Adsetscore - by James Coral - 26.01.2012, 16:58
Re: [HELP] /Adsetscore - by Bogdan1992 - 26.01.2012, 17:01
Re: [HELP] /Adsetscore - by MP2 - 26.01.2012, 17:02
Re: [HELP] /Adsetscore - by James Coral - 26.01.2012, 17:02
Re: [HELP] /Adsetscore - by Konstantinos - 26.01.2012, 17:03

Forum Jump:


Users browsing this thread: 3 Guest(s)