06.04.2009, 09:37
Код:
public PayDay() { for(new i; i < MAX_PLAYERS; i++) { SendClientMessage(i, COLOR_GREEN, "Its Payday. You get 1 experience and money now."); // Your code here, Use i for playerid // For your levels if(GetPlayerScore(i) <= 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10 ) GivePlayerMoney(i,10000); UpgradePoints[i]++; if(UpgradePoints[i] <= Level[i]+10) { SendClientMessage(i, COLOR_GREEN, "You are eligiable for a Level Up (( /levelup ))"); } else if(GetPlayerScore(i) <= 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19 || 20 ) GivePlayerMoney(i,20000); UpgradePoints[i]++; if(UpgradePoints[i] <= Level[i]+20) { SendClientMessage(i, COLOR_GREEN, "You are eligiable for a Level Up (( /levelup ))"); } else if(GetPlayerScore(i) <= 21 || 22 || 23 || 24 || 25 || 26 || 27 || 28 || 29 || 30 ) GivePlayerMoney(i,30000); UpgradePoints[i]++; if(UpgradePoints[i] <= Level[i]+20) { SendClientMessage(i, COLOR_GREEN, "You are eligiable for a new Level Up (( /levelup ))"); } } return 1; }
Help pls