OnPlayerEnterVehicle if if if { } problems
#1

Hello,

Im trying to make this;

When you enter a pd car as a cop (copskin) a message show up
when you enter the pd car as a civillian another message shows up
But..if you enter the pd car as a civillian being a 'passenger' some 'other' 'different' message shows up XD

This is what i have i changed several times changing the {or } and putting codes in another order but still nothing happens
I need some help here please;
Код:
  if(GetVehicleModel(vehicleid) == 598) //LVPD
  {
  new copskin = GetPlayerSkin(playerid);
  	new currentState = GetPlayerState(playerid);
	if (currentState == PLAYER_STATE_DRIVER)
	{
  if( (copskin == 287) || (copskin == 163) || (copskin == 282) || (copskin == 255) || (copskin == 165))
  	
  {
  
  	SendClientMessageToSkin(282, 0x0000FF96, "lvpd cop hitting the road");
  }
  	else
	{
	
	SendClientMessage(playerid,0x80008096, "your the none cop driver");
  	//SendClientMessageToSkin(282, 0x0000FF96, "DISPATCH: Someone enters a lvpd vehicle!");
	}
}

 }
	return 1;
}
Reply


Messages In This Thread
OnPlayerEnterVehicle if if if { } problems - by boelie - 27.07.2009, 16:10
Re: OnPlayerEnterVehicle if if if { } problems - by Andom - 27.07.2009, 16:14
Re: OnPlayerEnterVehicle if if if { } problems - by boelie - 27.07.2009, 16:44
Re: OnPlayerEnterVehicle if if if { } problems - by boelie - 29.07.2009, 10:44

Forum Jump:


Users browsing this thread: 2 Guest(s)