[SOLVED]Roadblock Destroy all quistion
#1

hey People

I got a question , i created/edited a roadblock script , but when i make more then 1 roadblock and i remove one it only removes the last one i made , so could someone please help me to create a command that deletes all the roadblocks ?

That would be awesome

Thnx

[NL]Killer94

Код:
	if(strcmp(cmd, "/roadblock", true) == 0)
	{
	if(roadblock[playerid] == 0)
	if (gTeam[playerid] == 2)
	{
	    new Float:x, Float:y, Float:z, Float:a;
		  GetPlayerFacingAngle(playerid,a);
      GetPlayerPos(playerid, x, y, z);
      block = CreateStreamObject(981,x,y,z,0.0,0.0,a,200.00);
      SendClientMessage(playerid,COLOR_GREY, "You made a roadblock");
      roadblock[giveplayerid] = 1;
      new Float:slx, Float:sly, Float:slz;
			GetPlayerPos(playerid, slx, sly, slz);
			SetPlayerPos(playerid, slx, sly, slz+4);
		}
		else
		{
		  SendClientMessage(playerid, COLOR_RED, "you have all ready made a roadblock (/removeroadblock)");
		}
  }
	else if(strcmp(cmd,"/removeroadblock", true)== 0)
 	if (gTeam[playerid] == 2)
 	{
	    DestroyStreamObject(block);
 	    SendClientMessage(playerid,COLOR_GREY, "You removed your roadblock, you can new make a new one");
 	    roadblock[giveplayerid] = 0;
		 	return 1;
	}
Reply


Messages In This Thread
[SOLVED]Roadblock Destroy all quistion - by killer94nl - 23.05.2009, 21:40
Re: Roadblock Destroy all quistion - by jonesy - 23.05.2009, 22:13
Re: Roadblock Destroy all quistion - by killer94nl - 24.05.2009, 14:50

Forum Jump:


Users browsing this thread: 1 Guest(s)