15.11.2011, 13:19
On the top of your script
new TramCar;
Under OnGameModeInIt ( or OnFilterScriptInIt if its a filterscript )
TramCar = AddStaticVehicle(449,1944.9480,-1953.7500,14.2082,270.0000,36,0);
The commands :
new TramCar;
Under OnGameModeInIt ( or OnFilterScriptInIt if its a filterscript )
TramCar = AddStaticVehicle(449,1944.9480,-1953.7500,14.2082,270.0000,36,0);
The commands :
pawn Код:
if(strcmp(cmdtext,"/tramenter",true) == 0)
{
PutPlayerInVehicle(playerid,TramCar);
return 1;
}
if(strcmp(cmdtext,"/tramexit",true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerVehicleID(playerid) == TramCar)
{
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}