Sit problem.
#1

Hello everyone, today i have a new problem in my gamemode ):!!!
Ok, is very easy, but i don't know why it doesn't work.
So, i'm making a Tutorial system where the player spawn in a Train, in a certain position. (Near, a chair of the train).
So the player must sit in this chair. The player sits without problems, but not in the correct position.
Here a screen
http://i47.tinypic.com/oar9li.png
I tried and re-tried to get positions, but he don't want to sit fine.
Here's the code:
PHP код:
    SetCameraBehindPlayer(playerid);
    
TogglePlayerControllable(playerid,0);
    
SetPlayerInterior(playerid,1);
       
PlayerAccount[playerid][Skin] = 26;
    
SetPlayerSkin(playerid,26);
    
SetTimerEx("BusTrain2"500false"i"playerid);
    
SetPlayerPos(playerid,2585.9336,-1804.9790,7.0375);
    
//SetPlayerInterior(playerid, 1);
    
SetPlayerFacingAngleplayerid);
    
SetTimerEx("BusTrain"60000false"i"playerid); 
PHP код:
public BusTrain2(playerid)
{
LoopingAnim(playerid,"PED","SEAT_idle"4.010000);
LoopingAnim(playerid,"PED","SEAT_idle"4.010000);
LoopingAnim(playerid,"PED","SEAT_idle"4.010000);
//LoopingAnim(playerid,"PED","SEAT_idle", 4.0, 1, 0, 0, 0, 0);
TogglePlayerControllable(playerid,0);
LoopingAnim(playerid,"PED","SEAT_idle"4.010000);
LoopingAnim(playerid,"PED","SEAT_idle"4.010000);
LoopingAnim(playerid,"PED","SEAT_idle"4.010000);
//LoopingAnim(playerid,"PED","SEAT_idle", 4.0, 1, 0, 0, 0, 0);
return 1;

NOTE: I ARLEADY TRY TO SET THE ANIM INTO THE SCRIPT WITHOUT TIMERS, BUT IT'S THE SAME.
SORRY FOR BAD ENGLISH, I'M FROM ITALY
Reply


Messages In This Thread
Sit problem. - by ProjectGANTON - 19.05.2012, 21:53
Re: Sit problem. - by Face9000 - 19.05.2012, 22:09
Re: Sit problem. - by ProjectGANTON - 19.05.2012, 22:13
Re: Sit problem. - by Face9000 - 19.05.2012, 22:35
Re: Sit problem. - by ProjectGANTON - 20.05.2012, 00:02
Re: Sit problem. - by Vince - 20.05.2012, 00:27
Re: Sit problem. - by IceCube! - 20.05.2012, 00:33

Forum Jump:


Users browsing this thread: 1 Guest(s)