Checkpoint Help
#3

pawn Код:
if (strcmp("/warct", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid, COLOR_GREEN ,"You have teleported to Los Santos Airport Counter Terrorist WAR");
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 1940.221, -2530.451, 62.309);
        new ck1 = SetPlayerCheckpoint(playerid, 1950.182, -2520.425, 62.252, 1);
        return 1;
    }
    if (strcmp("/wart", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid, COLOR_GREEN ,"You have teleported to Los Santos Airport Terrorist WAR");
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, 1909, -2518, 69);
        new ck2 = SetPlayerCheckpoint(playerid, 1929, -2509, 69, 1);
        return 1;
    }
    public OnPlayerEnterCheckpoint(playerid)
    {
        new checkpoint;
        if(checkpoint == ck1)
        {
            // tp player to your positions
        }
        else if(checkpoint == ck2)
        {
            // tp player to your positions
        }
        return 1;
    }
Reply


Messages In This Thread
Checkpoint Help - by Cenation - 04.04.2011, 06:12
Re: Checkpoint Help - by Hornet600 - 04.04.2011, 06:26
Re: Checkpoint Help - by Hornet600 - 04.04.2011, 06:30
Re: Checkpoint Help - by Cenation - 04.04.2011, 07:03
Re: Checkpoint Help - by Cenation - 04.04.2011, 07:09
Re: Checkpoint Help - by Ihsan-Cingisiz - 04.04.2011, 07:31
Re: Checkpoint Help - by (SF)Noobanatior - 04.04.2011, 08:30

Forum Jump:


Users browsing this thread: 2 Guest(s)