18.08.2012, 13:14
How to make trams.
new tram;
public OnGameModeInit( )
{
tram = AddStaticVehicle(449,1944.9480,-1953.7500,14.2082,270.0000,36,0);
//More
return 1;
}
//Commands
CMD:tramenter(playerid, params[])
{
PutPlayerInVehicle(playerid,tram,0);
return 1;
}
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;
}