SA-MP Forums Archive
Interiors. - 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)
+--- Thread: Interiors. (/showthread.php?tid=382001)



Interiors. - SA-MPDrifter - 01.10.2012

Okay, so I've successfully set my teleport up to set the player's interior to the required number, but how can I make it so that when they leave this teleport their interior is set to the default value of 1, any help here would be greatly appreciated.


Re: Interiors. - xMCx - 01.10.2012

post your code i dont really get it but um,
do you mean, you have a pickup? or a marker


Re: Interiors. - gtakillerIV - 01.10.2012

Код:
SetPlayerInterior(playerid, 1);



Re: Interiors. - SA-MPDrifter - 01.10.2012

GTAkillerIV, I already explained that I had done that part, but I'd like to make it so that when a player leaves a teleport the player's interior is automatically set to the default value.


Re: Interiors. - gtakillerIV - 01.10.2012

Yea use SetPlayerInterior(playerid, 0);

Ex:

Код:
public OnPlayerConnect(playerid)
{
             SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
	return 1;
}
Код:
public OnPlayerEnterCheckpoint(playerid)
{
             SetPlayerInterior(playerid, 0);
	return 1;
}



Re: Interiors. - Red_Dragon. - 01.10.2012

gtakillerIV your just posting anything to increase you post count this is wrong and you might get banned for spamming


Re: Interiors. - Sunnyrosario - 01.10.2012

anyone can post if they are posting in the write place, wtf? and of course people want post counts and reps , isnt that what we are here for ? to help others and help ourselfs? jesus christ ....


Re: Interiors. - SA-MPDrifter - 01.10.2012

Can we stop spamming in this topic please, I've come here asking for help and all I get in return is useless advice and people increasing their post count, I need someone to help me with this issue, someone who knows what they're talking about.


Re: Interiors. - SA-MPDrifter - 01.10.2012

Sorry for explaining in detail. What I mean by the player leaving a teleport is if that player teleported to a different location, but I just thought of setting the player's interior on every teleport location on the default interior, would this work?