24.03.2012, 17:08
Boas malta,e o seguinte,na faction/organizaзгo,existe radio global e radio,os mecanicos(faction/organizaзгo) sao faction ilegal,e por isso nгo tem radio global,mas oq ue me estб a preocupar e o comando da radio,ao usar o comando da radio,da para falar com todos os menbros da factions/organizaзгo,tipo celular/walkietalkie. So que quando uso o comando /radio,nao acontece nada,so aparece "Nome do Sujeito fala algo pelo radio."
Comando
Comando
pawn Код:
if(strcmp(cmd, "/radio", true) == 0 || strcmp(cmd, "/r", true) == 0)
{
new offset = idx;
new result[128];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
SendClientMessage(playerid, COLOR_WHITE, "Comando: (/r)[texto]");
return 1;
}
if(Muted[playerid])
{
SendClientMessage(playerid, COLOR_RED, "ERRO: Nгo podes usar o radio , estas muted.");
return 1;
}
if(PlayerInfo[playerid][msFaction] != 255 && DynamicFactions[PlayerInfo[playerid][msFaction]][fType] == 1)
{
if(CopOnDuty[playerid] || GoeOnDuty[playerid])
{
else if(rank == 2)
{
format(wstring, sizeof(wstring), "[RADIO:] %s %s: %s, over.",DynamicFactions[faction][fRank2],GetPlayerNameEx(playerid),result);
SendFactionTypeMessage(1, COLOR_LSPD, wstring);
FactionChatLog(wstring);
PhoneAnimation(playerid);
}
else if(rank == 3)
{
format(wstring, sizeof(wstring), "[RADIO:] %s %s: %s, over.",DynamicFactions[faction][fRank3],GetPlayerNameEx(playerid),result);
SendFactionTypeMessage(1, COLOR_LSPD, wstring);
FactionChatLog(wstring);
PhoneAnimation(playerid);
}
else if(rank == 4)
{
format(wstring, sizeof(wstring), "[RADIO:] %s %s: %s, over.",DynamicFactions[faction][fRank4],GetPlayerNameEx(playerid),result);
SendFactionTypeMessage(1, COLOR_LSPD, wstring);
FactionChatLog(wstring);
PhoneAnimation(playerid);
}
else if(rank == 5)
{
format(wstring, sizeof(wstring), "[RADIO:] %s %s: %s, over.",DynamicFactions[faction][fRank5],GetPlayerNameEx(playerid),result);
SendFactionTypeMessage(1, COLOR_LSPD, wstring);
FactionChatLog(wstring);
PhoneAnimation(playerid);
}
else if(rank == 6)
{
format(wstring, sizeof(wstring), "[RADIO:] %s %s: %s, over.",DynamicFactions[faction][fRank6],GetPlayerNameEx(playerid),result);
SendFactionTypeMessage(1, COLOR_LSPD, wstring);
FactionChatLog(wstring);
PhoneAnimation(playerid);
}
else if(rank == 7)
{
format(wstring, sizeof(wstring), "[RADIO:] %s %s: %s, over.",DynamicFactions[faction][fRank7],GetPlayerNameEx(playerid),result);
SendFactionTypeMessage(1, COLOR_LSPD, wstring);
FactionChatLog(wstring);
PhoneAnimation(playerid);
}
else if(rank == 8)
{
format(wstring, sizeof(wstring), "[RADIO:] %s %s: %s, over.",DynamicFactions[faction][fRank8],GetPlayerNameEx(playerid),result);
SendFactionTypeMessage(1, COLOR_LSPD, wstring);
FactionChatLog(wstring);
PhoneAnimation(playerid);
}
else if(rank == 9)
{
format(wstring, sizeof(wstring), "[RADIO:] %s %s: %s, over.",DynamicFactions[faction][fRank9],GetPlayerNameEx(playerid),result);
SendFactionTypeMessage(1, COLOR_LSPD, wstring);
FactionChatLog(wstring);
PhoneAnimation(playerid);
}
else if(rank == 10)
{
format(wstring, sizeof(wstring), "[RADIO:] %s %s: %s, over.",DynamicFactions[faction][fRank10],GetPlayerNameEx(playerid),result);
SendFactionTypeMessage(1, COLOR_LSPD, wstring);
FactionChatLog(wstring);
PhoneAnimation(playerid);
}
}
else
{
SendClientMessage(playerid,COLOR_WHITE, "ERRO: Nгo estas em duty!");
}
}
}
return 1;