/Destroycars problem
#1

when i write /destroycars then will destroy all cars in server not just that what makes Admin..
So i wannt when i type /Destroycars to destroy just created vehicles
pleas help me!
Thanks
Really Sory For my English...i Know is very bad
cod:
Код:
if(strcmp(cmd, "/destroycars", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pAdmin] < 1340)
			{
			    SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlasteni da koristite tu komandu!");
			    return 1;
			}
			for(new i = 0; i < sizeof(CreatedCars); i++)
			{
				if(i != 0)
				{
			    	DestroyVehicle(i);
				}
			}
			SendClientMessage(playerid, COLOR_GREY, "   Sva stvorena vozila su unistena !");
		}
		return 1;
	}
Reply


Messages In This Thread
/Destroycars problem - by Sandek - 05.02.2011, 22:47
Re: /Destroycars problem - by Dumb - 05.02.2011, 23:01
Re: /Destroycars problem - by xRyder - 05.02.2011, 23:08
Re: /Destroycars problem - by Sandek - 05.02.2011, 23:43
Re: /Destroycars problem - by xRyder - 06.02.2011, 00:02
Re: /Destroycars problem - by Sandek - 06.02.2011, 10:54

Forum Jump:


Users browsing this thread: 1 Guest(s)