#1

How i can do when a player touch a signal like a checkpoint, when player touch it the /vehicles menu show up?
Reply
#2

You'll need to essentially used the code that is specified in your "/vehicles" menu, and place it under what is called when the player touches the checkpoint.

Код:
public OnPlayerEnterCheckpoint(playerid)
{
   // Put the code in here, be sure to specify which checkpoint they are entering, if you have more than one. Either way, it is good practice, as you never know who might add another one in the future, and then be confused.
    return 1;
}
Reply
#3

idk how :/ lol
Reply
#4

I'd rather using Streamer checkpoint in this problem

Make sure you have this include:
pawn Код:
#include <streamer>
then create this:
pawn Код:
new CP;//making variable
then, use function callback onplayerenterdynamiccp:
pawn Код:
public OnPlayerEnterDynamicCP(playerid,checkpointid)
{
if(checkpointid == CP)
{
ShowPlayerDialog(..........)//Your code here!
}
return 1;
}
Wish this helped
Reply
#5

Actually, since only one checkpoint can be shown at a time using what I posted, I suggest if you want more, going with what qazwsx said, or just disregarding what I said about identifying which checkpoint the player is entering.

Post your "/vehicles" command code here, and I will do it for you, for sure, man.
Reply
#6

dcmd_vehicle(playerid,params[])
? that
Reply
#7

The stuff / lines under that, please.

Also please use the [*CODE] CODE HERE [*/CODE] tags on the forums, but remove the stars, of course, and paste the coding in the middle of them, the two.

Thank you, man!
Reply
#8

[ pawn ] [ / pawn ] tags, not code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)