[AJUdA] Passar pelo checkpoints a pй.
#7

Olб douglasmonteiro.

Pelo oque eu entendi ao decorrer do tуpico vocк queria algo assim:
pawn Код:
#include <a_samp>

new ValorChekpoint[MAX_PLAYERS];

main()
{
    print("Circuito de chekpoint");
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/iniciarcheckpoint", true))
    {
        SendClientMessage(playerid, 0xFFFFFFAA, "Vocк iniciou o circuito de checkpoint !!");
        SetPlayerCheckpoint(playerid, 2, 2, 3, 5.0);
        ValorChekpoint[playerid] = 1;
        return 1;
    }
    return 0;
}

public OnPlayerEnterCheckpoint(playerid)
{
    DisablePlayerCheckpoint(playerid);
    if(ValorChekpoint[playerid] == 1)
    {
        SetPlayerCheckpoint(playerid, 2, 2, 3, 5.0);
        ValorChekpoint[playerid] = 2;
    }
    else if(ValorChekpoint[playerid] == 2)
    {
        SetPlayerCheckpoint(playerid, 2, 2, 3, 2.0);
        ValorChekpoint[playerid] = 0;
    }
    return 1;
}
Caso nгo dк certo, tente com racechekpoint !!

Atenciosamente,
Falcon.
Reply


Messages In This Thread
[AJUdA] Passar pelo checkpoints a pй. - by douglasmonteiro - 01.06.2011, 21:22
Re: [AJUdA] Passar pelo checkpoints a pй. - by Shadoww5 - 01.06.2011, 21:36
Re: [AJUdA] Passar pelo checkpoints a pй. - by douglasmonteiro - 01.06.2011, 21:50
Re: [AJUdA] Passar pelo checkpoints a pй. - by DartakousLien - 01.06.2011, 22:04
Re: [AJUdA] Passar pelo checkpoints a pй. - by douglasmonteiro - 01.06.2011, 22:35
Re: [AJUdA] Passar pelo checkpoints a pй. - by douglasmonteiro - 02.06.2011, 16:25
Re: [AJUdA] Passar pelo checkpoints a pй. - by Falcon. - 02.06.2011, 22:39

Forum Jump:


Users browsing this thread: 3 Guest(s)