18.08.2012, 13:25
hmm,
PHP код:
new tram;
// OnGameModeInit
tram = AddStaticVehicleEx(449, X, Y, Z, Angle, Color1, Color2, RespawnDelay);
// Commands
CMD:tramenter(playerid, params[])
{
PutPlayerInVehicle(playerid, tram, 0);
return 1;
}
CMD:tramexit(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerVehicleID(playerid) == tram)
{
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}