if(GetPlayerCash(playerid) >= 1000000) // Checks if the player has it. { GivePlayerCash(playerid,-1000000); // Takes it away.