27.07.2012, 14:37
Code where is 183 line:
Command /radio:
BTW, thanks for error on 201 line.
Код:
public SetPlayerSpawn(playerid) { if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//USA spawn { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 2729.5417,-2452.9534,17.5937); PlayerInfo[playerid][pInt] = 0; return 1; } return 0; }
Код:
COMMAND:radio(playerid,params[]) { new sendername[MAX_PLAYER_NAME]; new string[128]; if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "*USA Vojnik %s: %s", sendername, result); else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "*USA Vojnik %s: %s", sendername, result); else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "*USA Zapovjednik %s: %s", sendername, result); else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "*USA Zapovjednik %s: %s", sendername, result); else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "*USA Zapovjednik %s: %s", sendername, result); else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "*USA General %s: %s", sendername, result); { format(string, sizeof(string), "** %s(radio): %s, prijem. **", sendername, result); } ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); SendRadioMessage(5, TEAM_RADIO_COLOR, string); printf("%s", string); return 1; } return 0; }