vehicle "is"...
#2

Quote:
Originally Posted by falor
Hey guys,
I try to code my server's vehicles to be used just by one faction for exemple.

I try this :
Код:
forward IsAVelib(vehicleid);
Код:
public IsAVelib(vehicleid)
{
  if(GetVehicleModel(vehicleid) >268 && GetVehicleModel(vehicleid) < 280 )
  {
     return 1;
  }
  else return 0;
}
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	passenger[playerid] = ispassenger;
		if (IsAVelib(vehicleid) && !ispassenger)
		{
       SendClientMessage(playerid,COLOR_GREY, "TEST");
		GivePlayerMoney(playerid, -100);

		}
But when i go to a "velib" it has no effect at all.
I hope you'll be able to help me, thank you !
forward IsAVelibCar(carid);

else if(IsAVelibCar(newcar))
{
SendClientMessage(playerid,COLOR_GREY, "TEST");
GivePlayerMoney(playerid, -100);
}

public IsAVelibCar(carid)
{
if((carid == id) || (carid == id) || (carid == id) || (carid == id) || (carid == id) || (carid == id) || (carid == id) || (carid == id))
{
return 1;
}
return 0;
}
Reply


Messages In This Thread
vehicle "is"... - by falor - 18.02.2010, 16:21
Re: vehicle "is"... - by Ricop522 - 18.02.2010, 16:33
Re: vehicle "is"... - by falor - 18.02.2010, 18:47
Re: vehicle "is"... - by saiberfun - 18.02.2010, 19:01
Re: vehicle "is"... - by falor - 18.02.2010, 19:04
Re: vehicle "is"... - by saiberfun - 18.02.2010, 19:11
Re: vehicle "is"... - by falor - 18.02.2010, 19:16
Re: vehicle "is"... - by Correlli - 18.02.2010, 19:18
Re: vehicle "is"... - by falor - 18.02.2010, 19:20
Re: vehicle "is"... - by pyrodave - 18.02.2010, 19:28

Forum Jump:


Users browsing this thread: 4 Guest(s)