Help Programming a Garage using Checkpoints
#1

Hello Everybody.

I'm Trying to Script my Police Garage using a Checkpoint.
Althought, I'm Unsure of How i Go About Doing This Type of Thing.

This is What I've Thought of Doing.

Код:
	if(getCheckpointID(playerid) == CP_POLICE_GARAGE)
	{
             //Check Player is in a Vehicle (IsPlayerInAnyVehicle) else Return a Message "you need a vehicle".
		{
                        //Show a DIALOG_STYLE_LIST
			return 1;
		}
Could Anyone Give me an Example Script?
Reply
#2

Bump -.-
Reply
#3

i recommend you to use the scripting machine for the dialog, thats the most fast way of how you want your dialog and then you can make it as how you like it
and for the thing of checking vehicle use this:
pawn Код:
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, red, "ERROR: you are not in a vehicle");
else if(IsPlayerInAnyVehicle(playerid))
{
// your code with dialog here
return 1;
}
EDIT: here is the scripting machine link:http://forum.sa-mp.com/showthread.ph...ipting+machine
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)