11.07.2014, 20:18
So eh when I do /radio it will send a radio message to the groupid +1 of my current (ie. LSPD = ID 1, SFPD = ID 2)
Example, I am in LSPD (see defines) it would send a message to SFPD
how can i fix that?
Example, I am in LSPD (see defines) it would send a message to SFPD
pawn Код:
CMD:radio(playerid, params[]) {
new groupid = PlayerData[playerid][pMember], string[128];
if(PlayerData[playerid][pMember] == 0)
return SendErrorMessage(playerid, "You do not have access to that frequency!");
if(isnull(params))
return SendErrorMessage(playerid, "You must use the command /radio [message]!");
format(string, sizeof(string), "{%s}** %s %s: %s", GroupData[groupid][gColor], GroupData[groupid][gName], GetPlayerNameEx(playerid), params);
SendGroupMessage(groupid, COLOR_WHITE, string);
return 1;
}