Cop /rb (/roadblock) problem !
#1

I have a problem i think the command gets bugged because if you tipe /rb when you are a cop the road block doesn't appear ! Can you help me ? Here is the command :
Код:
	if(strcmp(cmd, "/rb", true) == 0 || strcmp(cmd, "/roadblock", true) == 0)
	{
		if(gTeam[playerid] == TEAM_COP && PlayerInfo[playerid][pRank] == 1)
		{
		  if(RoadblockUsed[playerid] == 0)
   		{
		  	new Float:x, Float:y, Float:z, Float:a;
				GetPlayerPos(playerid, x, y, z);
				GetPlayerFacingAngle(playerid, a);
				PlayerRoadblock[playerid] = CreateObject(981, x, y, z, 0.0, 0.0, a+180.0);
		    SendClientMessage(playerid, COLOR_YELLOW,"Roadblock has been created on this location.");
		    SetPlayerPos(playerid, x, y, z+5.0);
    			format(string, sizeof(string), "Officer %s: I have deployed a roadblock, Over.", PlayerName[playerid]);
				SendTeamMessage(TEAM_COP, COLOR_BLUE, string);
				RoadblockUsed[playerid] = 1;
		  }
		  else
			{
				SendClientMessage(playerid, COLOR_RED,"You have already created a roadblock, use /rrb to delete it.");
			}
 		}
 		else
		{
			SendClientMessage(playerid, COLOR_RED,"You are not a part of the cops team.");
		}
		return 1;
	}
If you need something else please tell me !

Edit : the roadblock sometime appears like first time you tipe /rb but then it doesn't appear anymore !
Reply
#2

http://forum.sa-mp.com/index.php?topic=164617.0
Reply
#3

mm i did test it, and for my it works :/ but i don't use Roadblocks, use spikestrip much rp ^^
Reply
#4

yeah but after 2 times you tipe /rb the rb doesn't appear again !
Reply
#5

Quote:
Originally Posted by Etch ❽ H
This doesn't helpes me with nothing man

I have the /spikestrip command too but it happens the same !
Reply
#6

www.i-have-a-fail-roadblock-command.samp
Reply
#7

What's with this ? Lol
Reply
#8

Quote:
Originally Posted by Kirchhoff
What's with this ? Lol
your roadblock fails, or your script? because i did test it and it works everytime
Reply
#9

But how can it fail in my script ? If it gives no error or something look :

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

This is all the compile gives me !
Reply
#10

Maybe the roadblock will remove if you are death or something?

And SiloX: Why you post all that stupid comments?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)