05.10.2011, 19:35
ondialogresponse:
PHP код:
if(GetPlayerMoney(playerid) < 1) return SendClientMessage(playerid, 0xFFFFFF, "You don't have the Money!");
GivePlayerMoney(playerid, -3000);//removing 3000$ , u can edite it
GivePlayerWeapon(playerid, 31,100);// Spawning to him a M4
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);//Playing the Sound
SendClientMessage(playerid, 0x9EC73DAA, "You bought a M4 and lose 3000$");
}