*** Terrible Title Removed
#1

PHP код:
public OnPlayerSpawn(playerid)
{
    new 
Float:X,Float:Y,Float:Z,Float:A;
    
GetPlayerPos(playerid,X,Y,Z);
    
GetPlayerFacingAngle(playerid,A);
    
PCar[playerid] = AddStaticVehicle(CModel(playerid),X,Y,Z,A,dini_Int(File(playerid),"CarColor"),dini_Int(File(playerid),"CarColor"));
    
PutPlayerInVehicle(playerid,PCar[playerid],0);
    
RepairVehicle(PCar[playerid]);
    return 
1;

the CMode(playerid) is the car model of saved in the player file... (411 - Infernus)
and it is make a normal spawn. not put me in a vehicle
Someone know how to fix that code? thanks.
Reply
#2

Use CreateVehicle, might help, but not sure.. just i guess.
Reply
#3

i fixed it. thank you.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)