22.04.2012, 15:55
When I run server and play little on them and when I enter a command /aon my server shut down.
Here is command /aon:
How ti fix that problem?
Here is command /aon:
pawn Code:
CMD:aon(playerid,params[])
{
new ime[MAX_PLAYER_NAME], ip[24];
if(PI[playerid][Admin] >1 || IPA(playerid))
{
if(AdminDuznost[playerid] == 1) return SCM(playerid, BIJELA, ""COL_ZUTA"[INFO]"COL_BIJELA"Vec imate ukljucenu Admin duznost!");
AdminDuznost[playerid] = 1;
PostaviEnergiju(playerid, 5000);
PostaviZastitu(playerid, 100);
PostaviBoju(playerid, CRVENA);
DajOruzje(playerid, 9, 20000);
DajOruzje(playerid, 18, 20000);
DajOruzje(playerid, 24, 20000);
DajOruzje(playerid, 26, 20000);
DajOruzje(playerid, 28, 20000);
DajOruzje(playerid, 29, 20000);
DajOruzje(playerid, 30, 20000);
DajOruzje(playerid, 31, 20000);
DajOruzje(playerid, 38, 20000);
DajOruzje(playerid, 36, 20000);
SCM(playerid, BIJELA, ""COL_ZUTA"[INFO]"COL_BIJELA"Ukljucio si se na Admin Duznost.");
SCMA(BIJELA, ""COL_ZUTA"[INFO]"COL_CRVENA"Admin : "COL_BIJELA"%s "COL_CRVENA"| Duznost : "COL_BIJELA"Ukljucena");
GetPlayerIp(playerid, ip, 24);
format(CmdString, 80, "| Administrator | Igrac: %s | Duznost: Ukljucena | IP: %s", ime, ip);
UpisiLog(FAJL_DUZNOSTLOG, CmdString);
}
else SCM(playerid, BIJELA, ""COL_ZUTA"[INFO]"COL_BIJELA"Zao nam je,nemate mogucnost da koristite ovu komandu!");
return 1;
}