[Pomoc] Server restart nakon komande

Započeo ѕєуzιι¢н™.amx, Avgust 09, 2011, 19:59:48 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GF Edit
Detaljan opis problema: Kad napisem komandu /warall ili /disarmall server "rikne"!
Dio skripte:
if(strcmp(cmd, "/warall", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pAdmin] >= 1337)
			{
				GetPlayerName(playerid, sendername, sizeof(sendername));
				format(string, sizeof(string), "AdmWarn: Administrator %s je dao War Oruzja svim igracima na serveru!.", sendername);
				SendAdminMessage(COLOR_LIGHTRED, string);
				for(new i = 0; i < MAX_PLAYERS; i ++)
				{
					if(IsPlayerConnected(i))
					{
						SetPlayerHealth(i, 100);
						SetPlayerArmour(i, 100);
						GivePlayerWeapon(i, 33, 450);
						GivePlayerWeapon(i, 24, 450);
						GivePlayerWeapon(i, 31, 450);
						GivePlayerWeapon(i, 29, 450);
						GivePlayerWeapon(i, 25, 450);
						SendClientMessage(i, COLOR_YELLOW2, "Administrator %s vam je dao War Oruzja(5) sa 450 metaka!", sendername);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_RED, "Niste autorizirani za koristenje ove naredbe !");
			}
		}
		else
		{
			SendClientMessage(playerid, COLOR_RED, "Niste logirani !");
		}
		return 1;
	}
	if(strcmp(cmd, "/disarmall", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pAdmin] >= 1337)
			{
				GetPlayerName(playerid, sendername, sizeof(sendername));
				format(string, sizeof(string), "AdmWarn: Administrator %s je oduzeo oruzja svim igracima na serveru!.", sendername);
				SendAdminMessage(COLOR_LIGHTRED, string);
				for(new i = 0; i < MAX_PLAYERS; i ++)
				{
					if(IsPlayerConnected(i))
					{
						ResetPlayerWeapons(i);
                        PlayerInfo[i][pGun1] = 0; PlayerInfo[i][pAmmo1] = 0;
						PlayerInfo[i][pGun2] = 0; PlayerInfo[i][pAmmo2] = 0;
						PlayerInfo[i][pGun3] = 0; PlayerInfo[i][pAmmo3] = 0;
						PlayerInfo[i][pGun4] = 0; PlayerInfo[i][pAmmo4] = 0;
						SendClientMessage(i, COLOR_YELLOW2, "Administrator %s vam je oduzeo oruzja!", sendername);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_RED, "Niste autorizirani za koristenje ove naredbe !");
			}
		}
		else
		{
			SendClientMessage(playerid, COLOR_RED, "Niste logirani !");
		}
		return 1;
	}
Izrada web aplikacija/desktop aplikacija, kontakt PM.
VPS/Dedi managment 'n' hosting @pm also.

evo za /disarmall ja koristim ovo i radi perfektno

if(strcmp(cmd, "/disarms", true) == 0)
        {
		    if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pAdmin] >= 2)
			{
                GetPlayerName(playerid, sendername, sizeof(sendername));
	        	format(string, sizeof(string), "AdmWarn: %s je razoruzao sve igrace na serveru.", sendername);
	    		ABroadCast(COLOR_LIGHTRED,string,1);
			    for(new i = 0; i < MAX_PLAYERS; i ++)
			    {
				if(IsPlayerConnected(i))
                {
				ResetPlayerWeapons(i);
				}
			    }
			}
			else
			{
				SendClientMessage(playerid, COLOR_RED, "Niste autorizovani za koriscenje ove komande !");
			}
		}
		else
		{
			SendClientMessage(playerid, COLOR_RED, "Niste logirani !");
		}
		return 1;
		}
Street's Creed

Street's Creed gaming zajednica se vraća.
Forum: www.streets-creed.info
IP: 213.149.60.34:7774