17.01.2010, 16:45
below #include <a_samp>
add that
i have not tested that but i think works!!
i hope help you
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 hope help you