09.06.2012, 16:46
pawn Код:
CMD:r(playerid, params[])
{
new texto[128], name[24], Cargo[128];
if(PlayerInfo[playerid][PM] < 1) return SendClientMessage(playerid, VERMELHO, "Erro Voce nгo й da PM");
if(sscanf(params, "s[128]", texto)) return SendClientMessage(playerid, -1, " Use /r [Texto]");
if(PlayerInfo[playerid][PM] == 1) Cargo = "Soldado";
if(PlayerInfo[playerid][PM] == 2) Cargo = "Cabo";
if(PlayerInfo[playerid][PM] == 3) Cargo = "Soldado";
if(PlayerInfo[playerid][PM] == 4) Cargo = "Soldado";
if(PlayerInfo[playerid][PM] == 5) Cargo = "Soldado";
if(PlayerInfo[playerid][PM] == 6) Cargo = "Capitгo";
GetPlayerName(playerid, name, sizeof(name));
format(texto, sizeof(texto),"(Radio)(%s): %s: %s ,Cвmbio",Cargo, name, texto);
for(new i = 0; i<=MAX_PLAYERS; i++)
{
if(PlayerInfo[i][PM] > 0)
{
SendClientMessage(i, AZULVIP, texto);
}
}
return 1;
}