Posts: 1,087
Threads: 103
Joined: Mar 2009
Quote:
Originally Posted by efeX
To the guy above me: Stop pasting the same shit in every topic...
Hey cigo, this would just require some if statements!
(assuming you still using the code i gave you earlier)
pawn Код:
if (strcmp(cmd, "/buylevel", true) == 0) { gPlayerMoney[playerid] = GetPlayerMoney(playerid); if (GetPlayerMoney(playerid) >= 250000 && gPlayerLevel[playerid] == 1) { gPlayerLevel[playerid] += 1; // level 2 SetPlayerMoney(playerid, gPlayerMoney[playerid] - 250000); } if (GetPlayerMoney(playerid) >= 500000 && gPlayerLevel[playerid] == 2) { gPlayerLevel[playerid] += 1; // level 3 SetPlayerMoney(playerid, gPlayerMoney[playerid] - 500000); } return 1; }
&& means "and" so basically it's checking if you have the money AND you are level1,2, etc.
So on, so forth 
|
evrey topic?
wow i dont see it at any topic -_-
only at 2 it not evrey
anyways that what he meant i didnt understand him sorry... -_-