SA-MP Forums Archive
roadblock help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: roadblock help (/showthread.php?tid=151997)



roadblock help - VinceQc - 01.06.2010

Sup guys, well actually, the command /cblock (create roadblock) is bugged, the roadblock barely appears, if someone could help me, it would be really nice from your part.
Quote:

if(strcmp(cmd, "/cblock", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pMember] != 2 && PlayerInfo[playerid][pMember] != 14)
{
SendClientMessage(playerid, COLOR_GREY, " You are not a Cop/United Marshalls !");
return 1;
}
if (PlayerInfo[playerid][pRank] > 1)
{
SendClientMessage(playerid, COLOR_WHITE, "You have placed a Road Block, /rblock to Remove All Road Blocks.");
SendClientMessage(playerid, COLOR_WHITE, "[TIME] Roadblock will appear in approximatly 15-20 seconds.");
new Float:X,Float:Y,Float:Z,Float:A;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid,A);
if(PlayerInfo[playerid][pMember] == 2) {
RoadBlockObjectFBI[RoadBlocksFBI++] = CreateStreamObject(973,X,Y+1,Z,0,0,A,100.0,GetPlay erVirtualWorld(playerid));
} else {
RoadBlockObject[RoadBlocks++] = CreateStreamObject(973,X,Y+1,Z,0,0,A,100.0,GetPlay erVirtualWorld(playerid));

}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You rank is to low to set a Road Block !");
return 1;
}
}
return 1;
}




Re: roadblock help - RichyB - 02.06.2010

Tell me, You say barely? Is it in height or what do you mean barely?
If its a little lower then what its meant to be, you can adjust the Z by 1 or 2.
Higher the number the higher the Roadblock will go.

That solved my problem one time, when I used a roadblock system I found right here on SA:MP Forums.


Re: roadblock help - algerian - 03.08.2010

idiot yo