Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:r(playerid, params[]) return cmd_radio(playerid, params);
- CMD:radio(playerid, params[]) {
- if(!IsPlayerLogged[playerid]) return SCM(playerid, -1, "Trebuie sa te loghezi mai intai.");
- new msj[144], string[144], query[144], member = PlayerInfo[playerid][pMember];
- if(member == 1 || member == 3 || member == 2) {
- if(sscanf(params, "s[144]", msj)) return SCM(playerid, COLOR_GREY, ""CUL"Sintaxa:{ffffff} /r [message]");
- format(string, 144, "*** %s %s: %s, over.", PlayerFaction[PlayerInfo[playerid][pMember]][fRankName7], getName(playerid), msj);
- foreach(new i : Player) {
- if(PlayerInfo[i][pMember] == member) SendFactionMessage(PlayerInfo[playerid][pMember], COLOR_RADIOCHAT, string);
- if(FactionSpec[i] == member && PlayerInfo[i][pAdmin] >= 1) SendFactionMessage(PlayerInfo[playerid][pMember], COLOR_RADIOCHAT, string);
- }
- format(string, 144, "(radio) ''%s''", params);
- SetPlayerChatBubble(playerid, string, COLOR_CHATBUBBLE, 10.0, 10000);
- mysql_format(SQL, query, 144, "INSERT INTO chat_logs (`playerid`,`text`,`where`) VALUES ('%d','%s','r')", PlayerInfo[playerid][pSQLID], string);
- mysql_tquery(SQL, query, "", "");
- }
- else return SCM(playerid, -1, "Aceasta comanda este doar pentru departamente.");
- return true; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement