01.04.2011, 16:04
Hello,
i've got a little problem here.
and:
so i wanna make that if someon types /work a checkpoint appear(works fine)
and if he rides into the checkpoint another checkpoint appears.
and then he get $1000 and the checkpoint disappears
But if he go into that other checkpoint it just appears again and again and again and it spams.
can someone help me? thanks
i've got a little problem here.
pawn Код:
if (strcmp("/work", cmdtext, true, 10) == 0)
{
SetPlayerCheckpoint(playerid, 479.87573242188, 882.62823486328, -31.468822479248, 4.0);
SendClientMessage(playerid,COLOR_YELLOW,"Go to the checkpoint to load.");
return 1;
}
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 693.90051269531, 843.71759033203, -27.879653930664, 4.0);
SendClientMessage(playerid,COLOR_BLUE,"Go to the next checkpoint to unload.");
GivePlayerMoney(playerid, 1000);
return 1;
}
and if he rides into the checkpoint another checkpoint appears.
and then he get $1000 and the checkpoint disappears
But if he go into that other checkpoint it just appears again and again and again and it spams.
can someone help me? thanks