Roadblock System
#1

Hi, i am editing a roadblock system... As you see on the video i placed a roadblock... And when i am far from roadblock a command for remove it, and it says that it's removed but roadblock is still there... I want this: when i type /removeroadblock but i am far from it, then it says to me "You are far from it!", and when i am close to roadblock and type /removeroadblock, then roadblock removes and it says to me "Roadblock removed"

here is the video...
http://www.youtube.com/watch?v=2ES0X...ature=*********

and here is command /maknizapreku which means /removeroadblock

Код:
if (strcmp(cmdtext, "/maknizapreku",true) == 0)
	{
	    if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3 || IsPlayerAdmin(playerid))
		{
     	    if(PlayerInfo[playerid][pRank] >= 2)
     	    {
	     	    new string[256];
	     	    new sendername[MAX_PLAYER_NAME];
	     	    putauzeto --;
		    GetPlayerName(playerid, sendername, sizeof(sendername));
	        	DeleteClosestRoadblock(playerid);
		        GameTextForPlayer(playerid,"~w~Zapreka ~r~uklonjena!",3000,1); // this means ROADBLOCK REMOVED
			    format(string, sizeof(string), "* %s je uklonio zapreku.", sendername);
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			}
			else return SendClientMessage(playerid, COLOR_RED,"(Greska!) {C4C4C4}Morate biti rank 2+.");
		}
		else return SendClientMessage(playerid, COLOR_RED,"(Greska!) {C4C4C4}Niste clan drzavnih organizacije niti admin.");
	    return 1;
	}
Reply


Messages In This Thread
Roadblock System - by fury14 - 25.12.2012, 17:31
Re: Roadblock System - by PDChaseOfficial - 25.12.2012, 17:36
Re: Roadblock System - by fury14 - 25.12.2012, 18:25
Re: Roadblock System - by jNkk - 25.12.2012, 18:27
Re: Roadblock System - by Typhome - 25.12.2012, 18:27
Re: Roadblock System - by fury14 - 25.12.2012, 18:36
Re: Roadblock System - by fury14 - 25.12.2012, 22:00

Forum Jump:


Users browsing this thread: 1 Guest(s)