SA-MP Forums Archive
Only 1 Class - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Only 1 Class (/showthread.php?tid=420177)



Only 1 Class - Blackazur - 03.03.2013

Hello, i have an Question how to make that you can only choose 1 Class per Round/Map? Because now you have 50 Seconds Time to change your Class:

Код:
CMD:class(playerid,params[])
{
	if(team[playerid] == TEAM_HUMAN)
	{
		if(time >= 100)
		{
			ShowPlayerDialog(playerid,DIALOG_CLASS,DIALOG_STYLE_LIST,"{99FFFF}Class Selection","{24BF00}Human Classes\n{FF0000}Zombie Classes\n","Select","Close");
		}
		else return SendClientMessage(playerid,-1,""chat""COL_YELLOW" 50 Seconds have passed, you cant select an Class anymore!");
	}
	else return ShowPlayerDialog(playerid,DIALOG_CLASS,DIALOG_STYLE_LIST,"{99FFFF}Class Selection","{24BF00}Human Classes\n{FF0000}Zombie Classes\n","Select","Close");
	return 1;
}