I look for help for PutPlayerInVehicle.
#4

Quote:
Originally Posted by Elka_Blazer
Посмотреть сообщение
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 :

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;
}
You wrote
pawn Код:
PutPlayerInVehicle(playerid,TramCar);
You didn't add the seatid
Reply


Messages In This Thread
I look for help for PutPlayerInVehicle. - by Join7 - 15.11.2011, 13:05
Re: I look for help for PutPlayerInVehicle. - by Kostas' - 15.11.2011, 13:17
Re: I look for help for PutPlayerInVehicle. - by Elka_Blazer - 15.11.2011, 13:19
Re: I look for help for PutPlayerInVehicle. - by Kostas' - 15.11.2011, 13:22
Re: I look for help for PutPlayerInVehicle. - by Elka_Blazer - 15.11.2011, 13:27
Re: I look for help for PutPlayerInVehicle. - by Join7 - 15.11.2011, 13:45
Re: I look for help for PutPlayerInVehicle. - by Kostas' - 15.11.2011, 13:50
Re: I look for help for PutPlayerInVehicle. - by Join7 - 15.11.2011, 14:14
Re: I look for help for PutPlayerInVehicle. - by MP2 - 15.11.2011, 14:18
Re: I look for help for PutPlayerInVehicle. - by Join7 - 15.11.2011, 14:25

Forum Jump:


Users browsing this thread: 2 Guest(s)