13.12.2013, 15:17
pawn Код:
forward dialogtimer(playerid);
public dialogtimer(playerid)
{
//Class system dialog
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if((gTeam[playerid] =TEAM_RANGERS))
{
ShowPlayerDialog(playerid,CLASSELECT, DIALOG_STYLE_LIST, "{FFFFFF}Choose A Class", "Ranger Company{6EF83C}(0 score)\nSniper Company {6EF83C}(1000 score)\nAnti Tank Company{6EF83C}(2500 score)\nPilot Company{6EF83C}(5000 score)","okay","");
}
else if((gTeam[playerid] =TEAM_SPETSNAZ))
{
ShowPlayerDialog(playerid,CLASSELECTSPET, DIALOG_STYLE_LIST, "{FFFFFF}Choose A Class", "Conscript{6EF83C}(0 score)\nScout Sniper{6EF83C}(1000 score)\nMaxim Anti Tank Company{6EF83C}(2500 score)\nRed Pilot Company{6EF83C}(5000 score)","okay","");
}
}
}
return 1;
}
I want it to come after player has spawned and if he selects a class.The dialog should not come again