[help]Player into vehicle as passenger
#6

below #include <a_samp>

add that
Код:
new trainticket[MAX_PLAYERS];
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if(newstate == PLAYER_STATE_PASSENGER)
	{
		if(GetVehicleModel(GetPlayerVehicleID(playerid) == 570))//Streak Trailer (Train)
		{
			if(trainticket[playerid] == 1)
			{
			trainticket[playerid] = 0;//takes the player ticket
			SendClientMessage(playerid,0xFFFF00AA,"Welcome to the Brownstreak (Train) sir!");
			}
		}
		else
		{
		SendClientMessage(playerid,0xFF0000AA,"You can not enter in train sir, you have not a ticket!");
		RemovePlayerFromVehicle(playerid);
		}
	}
	return 1;
}
i have not tested that but i think works!!

i hope help you
Reply


Messages In This Thread
[help]Player into vehicle as passenger - by deather - 11.01.2010, 11:50
Re: [help]Player into vehicle as passenger - by Deat_Itself - 11.01.2010, 12:09
Re: [help]Player into vehicle as passenger - by deather - 11.01.2010, 12:16
Re: [help]Player into vehicle as passenger - by akis_tze - 11.01.2010, 13:44
Re: [help]Player into vehicle as passenger - by deather - 12.01.2010, 10:19
Re: [help]Player into vehicle as passenger - by akis_tze - 17.01.2010, 16:45

Forum Jump:


Users browsing this thread: 2 Guest(s)