How to make trams. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to make trams. (
/showthread.php?tid=369892)
How to make trams. -
Challenger11 - 18.08.2012
How to make trams.
Re: How to make trams. -
doreto - 18.08.2012
WTF is trams ? you mean trains ?
Re: How to make trams. -
Cjgogo - 18.08.2012
He may also mean TRAM as the "UNDESTROYABLE BatMan" vehicle that goes around San Fierro.
Re: How to make trams. -
RanSEE - 18.08.2012
Do you wish to create a NPC Tram or just the "TRAM"?
Re: How to make trams. -
Challenger11 - 18.08.2012
idea? I found this
PHP код:
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;
}
Re: How to make trams. -
AliveBG - 18.08.2012
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;
}
Re: How to make trams. -
Challenger11 - 18.08.2012
this with /tramexit is good.
Thx