If (IsPlayerInVehicle()) - GameTextForAll()
#7

if the model of the vehicle is 573
so:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  if (GetVehicleModel(vehicleid) == 573)
	{
  	new name[ 24 ], string[ 64 ];
  	GetPlayerName( playerid, name, 24 );
  	format( string, sizeof(string), "~w~%s has stolen the car!", name );
  	GameTextForAll( string, 5000, 3 );
	}
	return 1;
}
if the ID of the vehicle 573
so:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  if (vehicleid == 573)
	{
  	new name[ 24 ], string[ 64 ];
  	GetPlayerName( playerid, name, 24 );
  	format( string, sizeof(string), "~w~%s has stolen the car!", name );
  	GameTextForAll( string, 5000, 3 );
	}
	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)