OnPlayerExitVehicle
#1

Hello!

How do i reset a player skin he had before he enter the Rhino? You have the enter code here to. I have made it this far only
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
	if (OnPlayerExitVehicle(vehicleid, 432)
  		)
	return 1;
}
when you enter a Rhino you get the army skin, i made it like this
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if (PlayerEnterVehicle(vehicleid, 432)
		)
		SetPlayerSkin(playerid, 287);
	return 1;
}
but i get warning 206: redundant test: constant expression is non-zero.. (line 4) ")" why? The player gets the army skin even when he enters a Rustler and get freezed :S im sure i will get the same on the exit code.

And if someone could help me with how to give score for players when killing a vehicle (with a player inside it of course) i would be happy!
Reply


Messages In This Thread
OnPlayerExitVehicle - by cruising - 15.08.2010, 14:26
Re: OnPlayerExitVehicle - by Redgie - 15.08.2010, 14:35
Re: OnPlayerExitVehicle - by cruising - 15.08.2010, 14:42
Re: OnPlayerExitVehicle - by Cameltoe - 15.08.2010, 14:46
Re: OnPlayerExitVehicle - by cruising - 15.08.2010, 14:56
Re: OnPlayerExitVehicle - by cruising - 15.08.2010, 15:10

Forum Jump:


Users browsing this thread: 5 Guest(s)