Problem with objects - 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: Problem with objects (
/showthread.php?tid=496926)
Problem with objects +REP -
Tadas - 24.02.2014
Hello, I have done a entrance with "Enter" button. And when I exit from that bulding I got this:
How to fix it ?
Sorry for my bad English
Re: Problem with objects -
Tadas - 24.02.2014
Please guys I need help :/
Re: Problem with objects -
Kyance - 24.02.2014
Show us the code(s).
Re: Problem with objects -
theomanking - 24.02.2014
Yes,
Code please?
Re: Problem with objects -
Tadas - 24.02.2014
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if( newkeys == KEY_SECONDARY_ATTACK )
{
if( IsPlayerInRangeOfPoint( playerid, 3.0, -2072.7656,244.6396,37.2011) )
{
SetPlayerPos( playerid, 381.169189,-188.803024,1000.632812);
SetPlayerInterior( playerid, 17 );
return 1;
}
}
if( newkeys == KEY_SECONDARY_ATTACK )
{
if( IsPlayerInRangeOfPoint( playerid, 3.0, 377.1459,-193.3055,1000.6328) )
{
SetPlayerPos( playerid, -2072.7656,244.6396,37.2011 );
SetPlayerInterior( playerid, 17 );
return 1;
}
}
return 1;
}
And this,but this is just 3D text I dont think there is a problem:
PHP код:
public OnGameModeInit()
{
Create3DTextLabel("Press 'Enter' ", WHITE , 377.1459,-193.3055,1000.6328, 50, 0, 1);
Re: Problem with objects -
theomanking - 24.02.2014
Hmm, but if you have Interior Problem then there is mistake.
pawn Код:
SetPlayerInterior( playerid, 17 );
You may change it do this:
SetPlayerInterior( playerid, 0 );
Re: Problem with objects -
Tadas - 24.02.2014
Quote:
Originally Posted by theomanking
Hmm, but if you have Interior Problem then there is mistake.
pawn Код:
SetPlayerInterior( playerid, 17 );
You may change it do this:
SetPlayerInterior( playerid, 0 );
|
Thanks man +Rep for you
Re: Problem with objects -
theomanking - 24.02.2014
Good luck