Help Regarding Vehicle [+Rep]
#1

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?
Reply
#2

You can a) prevent them from blowing up (by setting the vehicle's health) or b) teleport them back to their position after respawning.
Reply
#3

https://sampwiki.blast.hk/wiki/DestroyVehicle
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)