Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///////////////////////////////////////////////////////
- YCMD:aduty(playerid, params[], help)
- {
- #pragma unused help
- #pragma unused params
- if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"UP:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, -1, ""SPLAVA"[UP:RP] "BELA"Samo Admini!");
- new string[256];
- if(AdminDuty[playerid] == 0)
- {
- format(string,sizeof(string),""CRVENA"(( "BELA"%s je na admin duznosti,ukoliko trebate pomoc '/pitaj' "CRVENA"))",GetName(playerid));
- SCMTA(-1,string);
- AdminDuty[playerid] = 1;
- SetPlayerColor(playerid, CRNA);
- SetPlayerArmour(playerid, 99.0);
- g_SetPlayerHealth(playerid, 99.0);
- }
- else if(AdminDuty[playerid] == 1)
- {
- SetPlayerArmour(playerid, 0);
- g_SetPlayerHealth(playerid, 99.0);
- SetPlayerColor(playerid,BELA2);
- format(string,sizeof(string),""CRVENA"(( "BELA"%s vise nije na admin duznosti! "CRVENA"))",GetName(playerid));
- SCMTA(-1,string);
- AdminDuty[playerid] = 0;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment