26.01.2012, 16:50
PHP код:
CMD:adsetscore( playerid, params[ ] ){
new id, score, Nam[MAX_PLAYER_NAME], mystring[128];
if(!( AdminLevel[playerid] == 1 ))
return 0;
if ( sscanf( params, "ud", id, score) )
return SendClientMessage( playerid, -1, "USAGE: /adsetscore [ID] [score]" );
else if( playerid== INVALID_PLAYER_ID )
return SendClientMessage( playerid, -1, "SYSTEM: {FFFFFF}That player is offline." );
GetPlayerName( id, Nam, sizeof Nam );
format( mystring, sizeof mystring, "* You have set %s's score to %d.", Nam, score );
SendClientMessage( playerid, COLOR_RED, mystring );
SetPlayerScore( id, score);
return 1;
}