SA-MP Forums Archive
[HELP]Gates is invisible why? - 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: [HELP]Gates is invisible why? (/showthread.php?tid=176265)



[HELP]Gates is invisible why? - GBLTeam - 12.09.2010

Код:
new hitman;
Код:
//---------------------------------[hitman]-------------------------
if(!strcmp(cmdtext, "/hov", true))
{
    if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8)
    {
        if (IsPlayerInRangeOfPoint(playerid, 15,1589.053344,-1638.123168,14.122960))
		{
      		MoveDynamicObject(hitman,1598.22998047,-1638.01293945,14.72591591, 0.8);
      		SetTimer("GateClose20", 12000, 0);
      		SendClientMessage(playerid, COLOR_BLUE,"Door will be open in 7 sec.");
      		GetPlayerName(playerid, sendername, sizeof(sendername));
      		format(string, sizeof(string), "* %s he opens/close hitman gate.", sendername);
      		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
	    }
	    else { SendClientMessage(playerid, COLOR_GREY,"You are not at the place."); }
	}
 	else return SendClientMessage(playerid, COLOR_GREY,"No rights.");
    return 1;
}
Код:
forward GateClose20(playerid);
Код:
public GateClose20(playerid)
{
      MoveDynamicObject(hitman,1589.97998047,-1638.12976074,14.72591591, 3.5);
      return 1;
}
Код:
//Pd baza
hitman = CreateDynamicObject(971,1589.053344,-1638.123168,14.122960,0.000000,0.000000,180);




What is wrong ? Why i cant see door ? Im using Incognito's Streamer and its updated for 0.3b
All other objects work normal only gates not? why please help me!



Re: [HELP]Gates is invisible why? - Th3Angel - 12.09.2010

Whats the stream distance?


Re: [HELP]Gates is invisible why? - GBLTeam - 12.09.2010

Quote:
Originally Posted by Th3Angel
Посмотреть сообщение
Whats the stream distance?
What you man stream distance?
How to check that ?

I have streamer from here https://sampforum.blast.hk/showthread.php?tid=102865

i find there this
Код:
The default cell distance is 400.0, and the default cell size is 200.0. Unless there are any items with larger streaming distances than the default cell size, it is recommended to not increase these values for the best performance.



Re: [HELP]Gates is invisible why? - Th3Angel - 13.09.2010

Can i see the code for the gate?


Re: [HELP]Gates is invisible why? - GBLTeam - 13.09.2010

Quote:
Originally Posted by Th3Angel
Посмотреть сообщение
Can i see the code for the gate?
OMG man ? Go up i post code and pictures!!!


Re: [HELP]Gates is invisible why? - iggy1 - 13.09.2010

View distance is 250 by default if not specified (incognitos). Do other objects show fine? or are all objects like this?


Re: [HELP]Gates is invisible why? - GBLTeam - 13.09.2010

Quote:
Originally Posted by iggy1
Посмотреть сообщение
View distance is 250 by default if not specified (incognitos). Do other objects show fine? or are all objects like this?
Man i have too many other objects and all work fine.
But only when i add gate in GM its like this.
I add a gate in fs and it work but i dont know how to add gate to can open only gangs/org.


Re: [HELP]Gates is invisible why? - Scenario - 13.09.2010

Dude, seriously?

This gate code;

pawn Код:
CreateDynamicObject(971,1589.053344,-1638.123168,14.122960,0.000000,0.000000,180);
Should actually be;

pawn Код:
CreateDynamicObject(971,1589.053344,-1638.123168,14.122960,0.000000,0.000000,180,-1,-1,-1,250.0);
Try that?


Re: [HELP]Gates is invisible why? - iggy1 - 13.09.2010

The extra parameters are optional
so doing
pawn Код:
CreateDynamicObject(971,1589.053344,-1638.123168,14.122960,0.000000,0.000000,180);
is the same as
pawn Код:
CreateDynamicObject(971,1589.053344,-1638.123168,14.122960,0.000000,0.000000,180,-1,-1,-1,250.0);
But i bet its not the streamer i bet your using 0.3a includes.


Re: [HELP]Gates is invisible why? - Scenario - 13.09.2010

Quote:
Originally Posted by iggy1
Посмотреть сообщение
The extra parameters are optional
so doing
pawn Код:
CreateDynamicObject(971,1589.053344,-1638.123168,14.122960,0.000000,0.000000,180);
is the same as
pawn Код:
CreateDynamicObject(971,1589.053344,-1638.123168,14.122960,0.000000,0.000000,180,-1,-1,-1,250.0);
But i bet its not the streamer i bet your using 0.3a includes.
When I don't add the extra parameters, I get issues with my objects. I would double check your to make sure you are using the 0.3b includes and also update your streamer plugin and files again... Just an idea, but it's worth it!