24.09.2013, 15:35
Modify it.
pawn Код:
CMD:makeadmin( playerid, params[ ] )
{
if( !IsPlayerAdmin( playerid ) ) return 1;
new
id,
level
;
if( sscanf( params, "ri", id, level ) ) return SendClientMessage( playerid, -1, "Syntax: /makeadmin <ID/Part Of Name> <level>" );
if( id == INVALID_PLAYER_ID ) return SendClientMessage( playerid, -1, "Offline player" );
if( level < 0 || level > 3 ) return SendClientMessage( playerid, -1, "Levels from 0 to 3" );
pInfo[ id ][ pAdminlevel ] = level;
return 1;
}