Does OnVehicleRespray work ? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Does OnVehicleRespray work ? (
/showthread.php?tid=192655)
Does OnVehicleRespray work ? -
T-N-Z - 23.11.2010
Hi, i am trying to do protection on my server, becouse some people abuses rhinos, so i want it to respawn if they go with it into paint spray, before 0.3 it would just say whoa it is too hot , or something like that and do nothing, but after 0.3a came out, it resprays it, so it sets Rhino's health back to max. In my server when you do kills with it, it removes some health from it, so you can't just explode people forever. But some other smarter people just go back to paint spray, so i wrote this, but it dosen't do anything at all :
Код:
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
if(GetVehicleModel(vehicleid) == 432)
{
new vehid = GetPlayerVehicleID(playerid);
SetVehicleToRespawn(vehid);
return 1;
}
return 1;
}
What's the problem here ?
Re: Does OnVehicleRespray work ? -
WillyP - 23.11.2010
Why not make objects instead?
Re: Does OnVehicleRespray work ? -
TheXIII - 23.11.2010
From wiki:
Note: Only called for modshops
Re: Does OnVehicleRespray work ? -
T-N-Z - 23.11.2010
Quote:
Originally Posted by [FU]Victious
Why not make objects instead?
|
Then people won't be availabe to use paint spay with normal cars