onplayerentervehicle
#1

What is the problem it's not working..

This code is inside a filterscript .

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(ispassenger == 0)
	{
		if(vehicleid == 448)
		{
			SendClientMessage(playerid, COLOR_YELLOW, "Welcome to the PizzaBike mission!");
			SendClientMessage(playerid, COLOR_YELLOW, "All the credits goes to Paul Diamant.");
			ShowPlayerDialog(playerid, DIALOG_PIZZA_START, 0, "Pizza Mission", "Welcome to the Huge pizza mission,\nTo start your mission HIT Start\nTo quit HIT leave", "Start", "Leave");
		}
	}
	return 1;
}
Reply
#2

https://sampwiki.blast.hk/wiki/GetVehicleModel
Reply
#3

i have another problem after it happend the vehicle does not respawn...

Код:
if(newstate == PLAYER_STATE_ONFOOT && isDelivering[playerid] == 1)
	{
		new playerveh = GetPlayerVehicleID(playerid);
		SendClientMessage(playerid, COLOR_NEWS, "You left your bike, and failed the mission");
		DisablePlayerCheckpoint(playerid);
		isDelivering[playerid] = 0;
		LCP[playerid] = 0;
		KillTimer(pizzatimer[playerid]);
		TextDrawSetString(Textdraw38[playerid], "");
		TogglePlayerControllable(playerid, 1);
		TextDrawHideForPlayer(playerid,Textdraw38[playerid]);
		
		
		PutPlayerInVehicle(playerid, playerveh, 0);
		TogglePlayerControllable(playerid,1);
		SetVehicleToRespawn(playerveh);
	}
Reply
#4

You made a new topic for that last post already. You could've just waited for a reply as this topic is still on the first page.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)