02.06.2011, 22:39
Olб douglasmonteiro.
Pelo oque eu entendi ao decorrer do tуpico vocк queria algo assim:
Caso nгo dк certo, tente com racechekpoint !!
Atenciosamente,
Falcon.
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;
}
Atenciosamente,
Falcon.