26.08.2012, 16:41
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;
}