SA-MP Forums Archive
Roadblock Question - 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 Question (/showthread.php?tid=155139)



Roadblock Question - gtapolicemods - 17.06.2010

I have a /roadblock command on my server. The roadblock only shows at certain times. Most of the time it doesn't. Could it be too many objects in that area or ....

I really can't think of anything else


Here is the main part of the code:

Код:
  GetPlayerFacingAngle(playerid,A);
	  ROADBLOCK[playerid] = CreateObject(RoadblockModels[random(sizeof(RoadblockModels))],X,Y-1,Z-0.3,0,0,0);
	  SetObjectRot(ROADBLOCK[playerid], 0.00, 0.00, A-180);
	  RoadblockActive[playerid] = 1;
Would the numbers in this code need to be raised up? When my server was in los santos they would show up all the time... Now that I moved to Las Venturas a couple of months ago like i said the roadblocks only show up half of the time.


Re: Roadblock Question - gtapolicemods - 17.06.2010

anything? Any help would be appreciated.


Re: Roadblock Question - kaisersouse - 17.06.2010

Quote:
Originally Posted by Red Hockey
I have a /roadblock command on my server. The roadblock only shows at certain times. Most of the time it doesn't. Could it be too many objects in that area or ....

I really can't think of anything else


Here is the main part of the code:

Код:
 GetPlayerFacingAngle(playerid,A);
	  ROADBLOCK[playerid] = CreateObject(RoadblockModels[random(sizeof(RoadblockModels))],X,Y-1,Z-0.3,0,0,0);
	  SetObjectRot(ROADBLOCK[playerid], 0.00, 0.00, A-180);
	  RoadblockActive[playerid] = 1;
Would the numbers in this code need to be raised up? When my server was in los santos they would show up all the time... Now that I moved to Las Venturas a couple of months ago like i said the roadblocks only show up half of the time.
If you comment-out the objects you already have and then run the gamemode and try to create a roadblock...does it show up reliably? I'd test that first, just to see if you are hitting the object limit.


Re: Roadblock Question - gtapolicemods - 17.06.2010

Quote:
Originally Posted by kaisersouse
Quote:
Originally Posted by Red Hockey
I have a /roadblock command on my server. The roadblock only shows at certain times. Most of the time it doesn't. Could it be too many objects in that area or ....

I really can't think of anything else


Here is the main part of the code:

Код:
 GetPlayerFacingAngle(playerid,A);
	  ROADBLOCK[playerid] = CreateObject(RoadblockModels[random(sizeof(RoadblockModels))],X,Y-1,Z-0.3,0,0,0);
	  SetObjectRot(ROADBLOCK[playerid], 0.00, 0.00, A-180);
	  RoadblockActive[playerid] = 1;
Would the numbers in this code need to be raised up? When my server was in los santos they would show up all the time... Now that I moved to Las Venturas a couple of months ago like i said the roadblocks only show up half of the time.
If you comment-out the objects you already have and then run the gamemode and try to create a roadblock...does it show up reliably? I'd test that first, just to see if you are hitting the object limit.
Here's the thing when there is 1-3 players on the server they show up just fine, but when our server gets to 10-20 they don't show up at all