22.11.2010, 17:23
Hello dear SA-MP community, im kinda stuck with a checkpoint, when i enter the checkpoint it
should execute some functions(bring up a menu in my case), so when ever i enter a checkpoint
it brings up the menu right away and i never get into the checkpoint only at his edge which kinda sucks.
Ive tried like:
But it didnt worked out, the efect was the same...
Anyone could please give me some tips if you can.
Thanks, regards.
should execute some functions(bring up a menu in my case), so when ever i enter a checkpoint
it brings up the menu right away and i never get into the checkpoint only at his edge which kinda sucks.
Ive tried like:
pawn Код:
public AmmuCheckpoint(playerid)
{
ShowMenuForPlayer(wepmenu, playerid);
TogglePlayerControllable(playerid,0);
ClearAnimations(playerid);
SetPlayerFacingAngle(playerid, 178.8904);
SetCameraBehindPlayer(playerid);
}
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
SetTimerEx("AmmuCheckpoint", 1500, 0, "i", playerid);
AmmuCheckpoint(playerid);
return 1;
}
Anyone could please give me some tips if you can.
Thanks, regards.