roadblock help
#1

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;
}

Reply
#2

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.
Reply
#3

idiot yo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)