- 0
Ajutor /gov
-
Similar Content
-
- 0 replies
- 76 views
-
ajutor urgent
By R4zvyy,
- 1 answer
- 360 views
-
- 2 answers
- 139 views
-
- 4 replies
- 111 views
-
- 1 answer
- 134 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
By R4zvyy,
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Neighbourhood Zapper
Nick: Cheeze
Problema: Bun,deci daca dau /gov apare PSA from Sheriff %s chiar daca sunt si in EMS si in PD si in GOV si celelalte factiuni guvernamentale.Vreau sa apara la fiecare diferit.
Ex: Daca esti medic sa apara PSA from Director %s :
Daca esti GOV PSA from Mayor %s:
Erori / warnings: Nu am/
Lini/script: [pawn]CMD:gov(playerid, params[])
{
new string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(!IsACop(playerid) && !IsAGov(playerid) && !IsMedic(playerid) && !IsFBI(playerid) && !IsARES(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an BCSD Officer/Government Official.");
if(!PlayerInfo[playerid][pFacLeader]) return SendClientMessage(playerid, COLOR_GREY, "You are not a faction leader.");
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "[usage]: (/gov)ernment announcement [text]");
if(AntiAdv(playerid, params)) return 1;
format(string, sizeof(string), "|___________ %s News Announcement ___________|", RPFNEx(playerid));
SendClientMessageToAll(COLOR_WHITE, string);
format(string, sizeof(string), "** PSA from Sheriff %s %s: %s **", RPFRN(playerid), RPN(playerid), params);
SendClientMessageToAll(COLOR_BLUE, string);
return 1;
}[/pawn]
Ai incercat sa rezolvi singur ?: Da,dar nu am idee cum sa incep si cum sa procedez.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts