04.10.2011, 14:20
Nice script but don't you think there is a little problem
Dont you think you should use GetPlayerMoney?
for something like
because your code will give the player a skin even if he doesn't have cash and will take his cash too negative value, but the above code will check the player's cash before giving him a skin. Hope you understand the point.
Code:
case 0: { SetPlayerSkin(playerid,40); GivePlayerMoney(playerid,-1000); SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
for something like
Code:
//under case 0 or 1 or 2 or ..... if(GetPlayerMoney(playerid) < 1000) { SendClientMessage(playerid, COLOR_RED, "Hey looser, get some cash first"); } else { SendClientMessage(playerid,0xFF9900AA, "« You have bought this dress for $1000 »"); GivePlayerMoney(playerid,-1000); } return 1; }