28.10.2013, 13:07
pawn Код:
CMD:apm( playerid, params[ ] )
{
if( !IsPlayerAdmin( playerid ) ) return SendClientMessage( playerid, -1, "You are not an Admin!" );
new
id,
msg[ 120 ]
;
if( sscanf( params, "rs[120]", id, msg ) ) return SendClientMessage( playerid, -1, "Usage: /apm <ID/Part Of Name> <message>" );
if( id == INVALID_PLAYER_ID ) return SendClientMessage( playerid, -1, "Invalid player!" );
new
sz_Msg[ 144 ]
;
format( sz_Msg, sizeof( sz_Msg ), "PM From Administrator: %s", msg );
SendClientMessage( id, 0xFFFF00FF, msg );
return 1;
}