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,""PPLAVA"[BE:RP] "C_BELA"Moras biti prijavljen.");
- if(PI[playerid][Admin] == 0) return Ovlascenje(playerid);
- if(PI[playerid][TrazeniNivo] >= 1) return Error(playerid, "Ne mozete koristiti ovu komandu jer imate wanted level.");
- if(PI[playerid][Admin] < 6 && PosaoAktivan[playerid] == 1) return Error(playerid, "Radis posao,ne mozes ici duty.");
- if(IgracNaEventu[playerid] == 1) return Error(playerid, "Na eventu si,ne mozes to.");
- if(AdminDuty[playerid] == 0)
- {
- if(PI[playerid][Pol] == 1)
- {
- if(PI[playerid][Admin] == 6)
- {
- format(conelys, sizeof(conelys),""PPLAVA"(( {FFFFFF}Vlasnik "PPLAVA"%s {FFFFFF}je na duznosti, koristi "PPLAVA"/pitaj {FFFFFF}ako mu zelis postaviti pitanje! "PPLAVA"))",ImeIgraca(playerid));
- }
- else
- {
- format(conelys, sizeof(conelys),""PPLAVA"(( {FFFFFF}Admin "PPLAVA"%s {FFFFFF}je na duznosti, koristi "PPLAVA"/pitaj {FFFFFF}ako mu zelis postaviti pitanje! "PPLAVA"))",ImeIgraca(playerid));
- }
- SCMTA(COLOR_GRAD1,conelys);
- SetPlayerSkin(playerid, 294);
- AdminDuty[playerid] = 1;
- SetPlayerColor(playerid, 0xFF0000FF);
- g_SetPlayerArmour(playerid, 99.0);
- SetPlayerHealth_H(playerid, 99.0);
- }
- else
- {
- format(conelys, sizeof(conelys),""PPLAVA"(( {FFFFFF}Adminka "PPLAVA"%s {FFFFFF}je na duznosti, koristi "PPLAVA"/pitaj {FFFFFF}ako joj zelis postaviti pitanje! "PPLAVA"))",ImeIgraca(playerid));
- SCMTA(COLOR_GRAD1,conelys);
- SetPlayerSkin(playerid, 211);
- AdminDuty[playerid] = 1;
- SetPlayerColor(playerid, 0xFF0000FF);
- g_SetPlayerArmour(playerid, 99.0);
- SetPlayerHealth_H(playerid, 99.0);
- }
- }
- else if(AdminDuty[playerid] == 1)
- {
- if(PI[playerid][Pol] == 1)
- {
- if(PI[playerid][Admin] == 6)
- {
- format(conelys,sizeof(conelys),""PPLAVA"(( {FFFFFF}Vlasnik "PPLAVA"%s {FFFFFF}vise nije na duznosti."PPLAVA"))",ImeIgraca(playerid));
- }
- else
- {
- format(conelys,sizeof(conelys),""PPLAVA"(( {FFFFFF}Admin "PPLAVA"%s {FFFFFF}vise nije na duznosti."PPLAVA"))",ImeIgraca(playerid));
- }
- SCMTA(COLOR_GRAD1,conelys);
- }
- else
- {
- format(conelys,sizeof(conelys),""PPLAVA"(( {FFFFFF}Adminka "PPLAVA"%s {FFFFFF}vise nije na duznosti."PPLAVA"))",ImeIgraca(playerid));
- SCMTA(COLOR_GRAD1,conelys);
- }
- g_SetPlayerArmour(playerid, 0);
- SetPlayerHealth_H(playerid, 99.0);
- SetPlayerSkin(playerid, PI[playerid][pSkin]);
- SetPlayerColor(playerid,TEAM_HIT_COLOR);
- AdminDuty[playerid] = 0;
- }
- return 1;
Add Comment
Please, Sign In to add comment