[OnPlayerSpawn] Death Bug
#5

Quote:
Originally Posted by Roberto80
Посмотреть сообщение
Yeah i found the problem,but when u want to use "LS Train"?
Код:
 

public OnPlayerSpawn(playerid)
{
	if(PlayerInfo[playerid][pPos][0] == 0 && PlayerInfo[playerid][pPos][1] == 0)
	{
	    SetPlayerPos(playerid, 802.4837,-1348.5842,-0.5078);
	    SetPlayerFacingAngle(playerid, 317.1196);
     	PlayAudioStreamForPlayer(playerid, "http://www.fromtexttospeech.com/texttospeech_output_files/0477346001439163656/7585780.mp3");
     	for(new i; i < 25; i++)
     	{
     	    SendClientMessage(playerid, -1, "");
     	}
	   // SendClientMessage(playerid, COLOR_ORANGE, "LS TRAIN: This is the last stop, enjoy your stay in Los Santos!");
        return 1;
	}
	else
	{
	    SetPlayerPos(playerid, PlayerInfo[playerid][pPos][0], PlayerInfo[playerid][pPos][1], PlayerInfo[playerid][pPos][2]);
	}
	
	StopAudioStreamForPlayer(playerid);
	return 1;
}
Quote:
Originally Posted by Roberto80
Посмотреть сообщение
You mean when they register for the first time? If yes:

Search when player register,the dialog,when he response,send this message LS train
that wont work. because im only doing it for when he SPAWNS.. (yes for the first time) not when he sees the dialogue.
Reply


Messages In This Thread
[OnPlayerSpawn] Death Bug - by BarFix - 22.08.2015, 11:13
Re: [OnPlayerSpawn] Death Bug - by Roberto80 - 22.08.2015, 11:33
Re: [OnPlayerSpawn] Death Bug - by BarFix - 22.08.2015, 11:35
Re: [OnPlayerSpawn] Death Bug - by Roberto80 - 22.08.2015, 11:39
Re: [OnPlayerSpawn] Death Bug - by BarFix - 22.08.2015, 11:40
Re: [OnPlayerSpawn] Death Bug - by JeaSon - 22.08.2015, 11:45
Re: [OnPlayerSpawn] Death Bug - by BarFix - 22.08.2015, 11:47
Re: [OnPlayerSpawn] Death Bug - by Roberto80 - 22.08.2015, 11:47
Re: [OnPlayerSpawn] Death Bug - by BarFix - 22.08.2015, 11:50
Re: [OnPlayerSpawn] Death Bug - by Roberto80 - 22.08.2015, 11:51

Forum Jump:


Users browsing this thread: 2 Guest(s)