13.01.2014, 18:05
use this /aduty ![Smiley](images/smilies/smile.png)
![Smiley](images/smilies/smile.png)
pawn Код:
if (strcmp("/aduty", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
{
if(PlayerInfo[playerid][AdminDuty] == 1)return SendClientMessage(playerid, -1, "{9ACD32}[CL:RP]: "BELA"(( Vec si na Admin Duty, /adutyoff. ))");
new str[128];
SetPlayerChatBubble(playerid, "Admin na Duty", -1, 20, 1000000);
SetPlayerColor(playerid, -1);
SendClientMessage(playerid, -1, "{9ACD32}[CL:RP]: "BELA"(( Sada si Admin na Duty! ))");
format(str, sizeof(str), "{9ACD32}[CL:RP]: "BELA"(( Admin %s je sada na duty, sva pitanja /pitaj. ))", imeigraca(playerid));
SetPlayerHealth(playerid, 99999);
SetPlayerArmour(playerid, 99999);
SetPlayerSkin(playerid, 294);
ResetPlayerWeapons(playerid);
SendClientMessageToAll(-1, str);
PlayerInfo[playerid][AdminDuty]++;
}
else
{
SendClientMessage(playerid, -1, "{9ACD32}[CL:RP]: "BELA"(( Niste ovlasceni da koristite ovu komandu! ))");
}
return 1;
}
if (strcmp("/adutyoff", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
{
if(PlayerInfo[playerid][AdminDuty] == 0)return SendClientMessage(playerid, -1, "{9ACD32}[CL:RP]: "BELA"(( Ti nisi na Duty, /aduty. ))");
new str[128];
SetPlayerChatBubble(playerid, "Admin", -1, 20, 1000000);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
SendClientMessage(playerid, -1, "{9ACD32}[CL:RP]: "BELA"(( Sada vise nisi Admin na Duty! ))");
format(str, sizeof(str), "{9ACD32}[CL:RP]: "BELA"(( Admin %s vise nije na Duty. ))", imeigraca(playerid));
SendClientMessageToAll(-1, str);
PlayerInfo[playerid][AdminDuty]--;
}
else
{
SendClientMessage(playerid, -1, "{9ACD32}[CL:RP]: "BELA"(( Niste ovlasceni da koristite ovu komandu! ))");
}
return 1;
} //Working and maked and tested by me.