Bug random 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: Bug random checkpoint (
/showthread.php?tid=372465)
Bug random checkpoint -
DarkZeroX - 26.08.2012
My french no English :/
My checkpoint delete no respawn
PHP код:
new tmp = random(sizeof(Poub));
SetPlayerCheckpoint(playerid, Poub[tmp][0], Poub[tmp][1], Poub[tmp][2], 8.0);
Checkpoint the delete no respawn :/
Re : Bug random checkpoint -
DarkZeroX - 26.08.2012
sorry ,
PHP код:
if(wWork[playerid][wStep] == 2 )
{
DisablePlayerCheckpoint(playerid);
eboueurNext(playerid);
new expwin, monwin;
expwin = 0;
new poubel = (1+random(2));
monwin = (2+random(7))* pWork[playerid][wRang];
workGiveSalaire( playerid, monwin);
wWork[playerid][wMarchandise] += poubel;
format(mono[playerid], 128, "Poubelle prise +%d$ +%d exp +%d poubelles.", monwin, expwin, poubel);
SendClientMessage(playerid,Couleur_Jaune,mono[playerid]);
workUpdateInterface(playerid);
new tmp = random(sizeof(Poub));
SetPlayerCheckpoint(playerid, Poub[tmp][0], Poub[tmp][1], Poub[tmp][2], 8.0);
return 1;
}