Thread: [Solved] !roulette random possibility
View Single Post
TRServer
Junior Member
Join Date: Dec 2017
Old 12-13-2017 , 11:22   Re: !roulette random possibility
Reply With Quote #3

Code:
    int num = GetRandomInt(1, 100);

	if (num <= 48)
	{
	    PrintToChat(client, "Siyah");
	}
	else if (num <= 48 + 48) // Or just <= 96, but I think it's easier to understand like that?
	{
	    PrintToChat(client, "Kırmızı");
	}
	else if (num <= 48 + 48 + 4)
	{
	    PrintToChat(client, "Yeşil");
	}
Thank you
TRServer is offline