23.10.2012, 17:57
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;
}
and it is make a normal spawn. not put me in a vehicle
Someone know how to fix that code? thanks.