Placebet DCMD help..
#2

Код:
dcmd_placebet(playerid, params[])
{
	if(joinedtable[playerid] == 1) //joined the table
	{
		if(peopleattable >= 2) //there is more than two people on the table
		{
			new number, amount;
			if(sscanf(params, "ii", number, amount)) return SendClientMessage(playerid, COLOR_RED, "ERROR: /placebet [1-6] [amount]");
			if (number < 1) return SendClientMessage(playerid, COLOR_RED, "Numbers should be greater than 1.");
            if (number > 6) return SendClientMessage(playerid, COLOR_RED, "Numbers should be less than 6.");
            //continue with your code.
        }
        else SendClientMessage(playerid, COLOR_RED, "You need to have 2+ players at a table.");
    }
	else SendClientMessage(playerid, COLOR_RED, "You need to join a table.");
	return 1;
}
Reply


Messages In This Thread
Placebet DCMD help.. - by KingyKings - 02.03.2015, 10:40
Re: Placebet DCMD help.. - by Evocator - 02.03.2015, 10:56
Re: Placebet DCMD help.. - by KingyKings - 02.03.2015, 11:03

Forum Jump:


Users browsing this thread: 1 Guest(s)