Cop /rb (/roadblock) problem ! -
Kirchhoff - 12.04.2010
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 !
Re: Cop /rb (/roadblock) problem ! -
aircombat - 12.04.2010
http://forum.sa-mp.com/index.php?topic=164617.0
Re: Cop /rb (/roadblock) problem ! -
sjvt - 12.04.2010
mm i did test it, and for my it works :/ but i don't use Roadblocks, use spikestrip much rp ^^
Re: Cop /rb (/roadblock) problem ! -
Kirchhoff - 12.04.2010
yeah but after 2 times you tipe /rb the rb doesn't appear again !
Re: Cop /rb (/roadblock) problem ! -
Kirchhoff - 12.04.2010
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 !
Re: Cop /rb (/roadblock) problem ! -
sjvt - 12.04.2010
www.i-have-a-fail-roadblock-command.samp
Re: Cop /rb (/roadblock) problem ! -
Kirchhoff - 12.04.2010
What's with this ? Lol
Re: Cop /rb (/roadblock) problem ! -
sjvt - 12.04.2010
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
Re: Cop /rb (/roadblock) problem ! -
Kirchhoff - 12.04.2010
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 !
Re: Cop /rb (/roadblock) problem ! -
[NL]Bank - 12.04.2010
Maybe the roadblock will remove if you are death or something?
And SiloX: Why you post all that stupid comments?