SA-MP Forums Archive
Help in checkpoint - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help in checkpoint (/showthread.php?tid=525758)



Help in checkpoint - 123bob123 - 13.07.2014

pawn Код:
#include <a_samp>

#if defined FILTERSCRIPT

new Hpickup;

public OnGameModeInit()
{
    Hpickup = CreatePickup(1318, 1, 1172.0773,-1323.4209,15.4032, -1);
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == Hpickup)
    {
        SetPlayerPos(playerid,-1323.4209,15.4032,89.4566);
        return 1;
    }
    return 1;
}

#endif
Basically im trying to do a pickup to get in an interior but it ain't working and im not seeing the pickup when i tets it in the test server, can someone help me figure things out please or maybe a small code as an example so i can take a look and make it right please and thank you for reading