24.10.2009, 17:56
Mayb you can try something like this,
Etc.
I believe the highest GetPlayerDrunkLevel is 50000 so i would set the drunk levels higher else u need to make 100 rates.
Код:
if(GetPlayerDrunkLevel(playerid) > 1999 && GetPlayerDrunkLevel(playerid) < 2499) { SendClientMessage(playerid, 0xFFFFFFFF, "Drunk rate 1"); if(GetPlayerDrunkLevel(playerid) > 2499 && GetPlayerDrunkLevel(playerid) < 2999) { SendClientMessage(playerid, 0xFFFFFFFF, "Drunk rate 2"); if(GetPlayerDrunkLevel(playerid) > 2999 && GetPlayerDrunkLevel(playerid) < 3499) { SendClientMessage(playerid, 0xFFFFFFFF, "Drunk rate 3");
I believe the highest GetPlayerDrunkLevel is 50000 so i would set the drunk levels higher else u need to make 100 rates.