Does OnVehicleRespray work ?
#1

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

Why not make objects instead?
Reply
#3

From wiki:
Note: Only called for modshops
Reply
#4

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
Why not make objects instead?
Then people won't be availabe to use paint spay with normal cars
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)