Detaljan opis problema:Imam problem napravio sam komandu /aduty i pokusavao sam nesto da kad si na aduty da ti se auto popravlja cim se osteti i nisam uspio pa ako mozete da mi pomognete
Dio skripte:
YCMD:aduty(playerid, params[], help)
{
#pragma unused help
#pragma unused params
if(UlogovanProvera == 0) return SCM(playerid,-1,""GLAVNA"(PG)"BELA": Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo == 0) return SCM(playerid, -1, ""GLAVNA"(PG)"BELA": Samo Administratori !");
new string;
if(AdminDuty == 0)
{
format(string,sizeof(string),""GLAVNA"(PG)"BELA": Administrator "GLAVNA"%s "BELA"je sada na duznosti , ako vam je potrebna pomoc obratite se na /pitaj !",GetName(playerid));
SCMTA(-1,string);
AdminDuty = 1;
SetPlayerColor(playerid, 0xFF000000);
SetPlayerArmour(playerid, 99.0);
g_SetPlayerHealth(playerid, 99.0);
SetPVarInt(playerid, "Izbegavanje", 1);
}
else if(AdminDuty == 1)
{
SetPlayerArmour(playerid, 0);
g_SetPlayerHealth(playerid, 99.0);
SetPlayerColor(playerid,BELA2);
format(string,sizeof(string),""GLAVNA"(PG)"BELA": Administrator "GLAVNA"%s "BELA"je sada van duznosti , ne trazite pomoc od njega !",GetName(playerid));
SCMTA(-1,string);
SetPVarInt(playerid, "Izbegavanje", 0);
AdminDuty = 0;
}
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
