19.10.2013, 05:51
How i can do when a player touch a signal like a checkpoint, when player touch it the /vehicles menu show up?
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; }
#include <streamer>
new CP;//making variable
public OnPlayerEnterDynamicCP(playerid,checkpointid)
{
if(checkpointid == CP)
{
ShowPlayerDialog(..........)//Your code here!
}
return 1;
}