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


Messages In This Thread
roadblock help - by VinceQc - 01.06.2010, 22:43
Re: roadblock help - by RichyB - 02.06.2010, 05:58
Re: roadblock help - by algerian - 03.08.2010, 21:42

Forum Jump:


Users browsing this thread: 1 Guest(s)