How to implement this function? - 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: How to implement this function? (
/showthread.php?tid=576449)
How to implement this function? -
Jimmi - 04.06.2015
How to implement this function?
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(56484) : error 017: undefined symbol "GetPlayerCameraTargetVehicle"
Re: How to implement this function? -
Konstantinos - 04.06.2015
Update to 0.3.7 as this function will not work for earlier versions.
Re: How to implement this function? -
Jimmi - 04.06.2015
What should I change? Include?
Re: How to implement this function? -
Konstantinos - 04.06.2015
Download the server package and replace the executable files and the includes from
pawno\include folder.
Re: How to implement this function? -
Jimmi - 04.06.2015
I added no longer give errors but incontinuare does not work command. It should work just in front of the vehicle/repair
Код:
if(strcmp(cmd, "/repair", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
ApplyAnimation(playerid,"CAR", "Fixn_Car_Loop",4.1,1,1,1,1,10000);
new vehicleid = GetPlayerCameraTargetVehicle(playerid);
SetVehicleHealth(vehicleid, 1000.0);
RepairVehicle(vehicleid);
}
return 1;
}
Re: How to implement this function? -
Konstantinos - 04.06.2015
https://sampwiki.blast.hk/wiki/EnablePlayerCameraTarget
It's disabled by default.
Re: How to implement this function? -
Jimmi - 04.06.2015
All go/repair and if you're not in front of the vehicle