06.05.2011, 07:49
Heey guys
How can i make that players need to buy first a ticket before they can enter a train as passenger?
I think something with Removeplayerfromvehicle but dont work at me!
Pls help
Thanks admigo
How can i make that players need to buy first a ticket before they can enter a train as passenger?
I think something with Removeplayerfromvehicle but dont work at me!
Код:
for(new i = 0; i < GetMaxPlayers(); i++)
{
if (IsPlayerInVehicle(i, 538) && GetPlayerState(i) == PLAYER_STATE_DRIVER)//I dont know how to make it in passenger:S
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,COLOR_RED,"You need to buy a ticket first!!.");
}
Thanks admigo


It says that you need ticket but he dont removes you out the train:S