25.07.2013, 21:52
I use GetPlayerMoney only for anticheat... and when player have different money than he should have i setPlayerMoney to the right value.. But in user file i save money from Money[playerid]..
Right usage; Example: m4 command
Right usage; Example: m4 command
pawn Код:
if(!strcmp(cmdtext, "/m4", true)){
if(Money[playerid] < 5000)return SendClientMessage(playerid, 0x00FFFFAA, "* {FFFFFF}You donґt have enough money!");
GivePlayerWeapon(playerid, 31, 500);
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, Money[playerid]-5000);
return 1;
}