20.11.2009, 20:32
try this, untested
Код:
if (strcmp(cmdtext, "/testcmd", true) == 0) { if(GetPlayerMoney(playerid) => 2500) { GivePlayerWeapon(playerid,46,1); // Parachute with 1 ammo. I want the person to pay $2500 for it and it detect if the person got enough money or it will prevent him from buying.. return 1; } else { // not enought money message return 1; } } return 0;