Help Regarding Vehicle [+Rep] - 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: Help Regarding Vehicle [+Rep] (
/showthread.php?tid=309496)
Help Regarding Vehicle [+Rep] -
Aira - 07.01.2012
Alright guys, so i have a Filterscript which is SinglePlayerFeatures to SAMP. Basically, it has SinglePlayerFeatures if you use it. I'm Currently working on 2.0 to fix some bugs and add more Features (Like in Singleplayer), but in all vehicle Cheats, THEY ALL RESPAWN AFTER BLOWING UP. Is therE anyway that they will NOT respawn?
AW: Help Regarding Vehicle [+Rep] -
Drebin - 07.01.2012
You can a) prevent them from blowing up (by setting the vehicle's health) or b) teleport them back to their position after respawning.
Re: Help Regarding Vehicle [+Rep] -
Stigg - 07.01.2012
https://sampwiki.blast.hk/wiki/DestroyVehicle
Re: Help Regarding Vehicle [+Rep] -
Aira - 08.01.2012
Quote:
public OnVehicleDeath(vehicleid)
{
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
DestroyVehicle(currentveh);
}
|
C:\.\.\.\.\filterscripts\SPF.pwn(104) : error 017: undefined symbol "playerid"
Edit:
FIXIED
Quote:
forward dest(playerid);
public dest(playerid)
{
new cveh;
cveh = GetPlayerVehicleID(playerid);
DestroyVehicle(cveh);
}
public OnPlayerDeath(playerid, killerid, reason)
{
UnderWater[playerid]=0; // Its for the Infinite Oxygen, ignore this
GameTextForPlayer(playerid,"~w~Wasted",4000,2);
return 1;
}
|
+Rep to Stigg