*** Terrible Title Removed - 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: *** Terrible Title Removed (
/showthread.php?tid=387215)
*** Terrible Title Removed -
tomsalmon - 23.10.2012
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.
Re: help with some code.. plsss -
Riddick94 - 23.10.2012
Use CreateVehicle, might help, but not sure.. just i guess.
Re: help with some code.. plsss -
tomsalmon - 23.10.2012
i fixed it. thank you.