27.09.2018, 18:59
PHP код:
ProxDetector(pInfo[playerid][pRadioFreq], playerid, string, COLOR_WHITE);
PlayAudioStreamForPlayer(playerid,"https://sampdayz.ro/SFX/radio.mp3");
ProxDetector(pInfo[playerid][pRadioFreq], playerid, string, COLOR_WHITE);
PlayAudioStreamForPlayer(playerid,"https://sampdayz.ro/SFX/radio.mp3");
foreach(Player, i){
if(pinfo[playerid][pradioFreq] == pinfo[i][pradioFreq]){
//code
}
}
CMD:r(playerid,params[])
{
if(PlayerHasItem(playerid,"Radio"))
{
if(isnull(params)) return SendClientMessage(playerid, -1,""chat" /r [radio chat]");
new string[128];
format(string, sizeof(string), ""COL_YELLOW"STATIE RADIO:"COL_WHITE" %s says on the radio: %s ", PlayerName(playerid), params);
ProxDetector(pInfo[playerid][pRadioFreq], playerid, string, COLOR_WHITE);
PlayAudioStreamForPlayer(playerid,"https://sampdayz.ro/SFX/radio.mp3");
}
else return SendClientMessage(playerid,-1,""chat" You don't have radio!");
return 1;
}
CMD:r(playerid,params[])
{
if(PlayerHasItem(playerid,"Radio"))
{
if(isnull(params)) return SendClientMessage(playerid, -1,""chat" /r [radio chat]");
new string[128];
format(string, sizeof(string), ""COL_YELLOW"STATIE RADIO:"COL_WHITE" %s says on the radio: %s ", PlayerName(playerid), params);
// ProxDetector(pInfo[playerid][pRadioFreq], playerid, string, COLOR_WHITE);
foreach(Player, i){
if(pinfo[playerid][pradioFreq] == pinfo[i][pradioFreq]){
SendClientMessage(i, -1, string);
PlayAudioStreamForPlayer(i,"https://sampdayz.ro/SFX/radio.mp3");
}
}
}
else return SendClientMessage(playerid,-1,""chat" You don't have radio!");
return 1;
}
PHP код:
|