14.07.2011, 20:17
pawn Код:
command(setpoints, playerid, params[] )
{
if ( !IsPlayerCop[ playerid ] ) return 0; // Example
new
giveplayerid,
points;
if ( sscanf( params, "ri", giveplayerid, points ) ) SendClientMessage( playerid, -1, "* Usage: /setpoints [Nick/ID] [Points]" );
else if ( giveplayerid == INVALID_PLAYER_ID ) SendClientMessage( playerid, -1, "* Player not found!" );
else
{
Player[ playerid ][ Points ] += pointrs;
}
return 1;
}