[HELP]Gates is invisible why?
#1

Код:
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!
Reply
#2

Whats the stream distance?
Reply
#3

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

Can i see the code for the gate?
Reply
#5

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

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

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

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?
Reply
#9

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

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)