23.11.2010, 11:00
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 :
What's the problem here ?
Код:
public OnVehicleRespray(playerid, vehicleid, color1, color2) { if(GetVehicleModel(vehicleid) == 432) { new vehid = GetPlayerVehicleID(playerid); SetVehicleToRespawn(vehid); return 1; } return 1; }