10.01.2014, 19:28
pawn Код:
CMD:a(playerid,params[]){
new String[128],RangoA[15],User[MAX_PLAYER_NAME];
GetPlayerName(playerid,User,sizeof(User));
if(isnull(params)) return Message(playerid, COLOR_BLANCO,"CMD:/A [Chat administrativo]");
switch(PlayerInfo[playerid][Administrador]){
case 1: RangoA = "Moderador";
case 10: RangoA = "Dueсo";
//ETC...
}
format(String,sizeof(String),"{006FFF}-[Chat Admin]{FFFFFF} %s %s: %s",User,RangoA,params);
AdminMensaje(String);
return 1;
}