Dialogs Not seem to be working
#1

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    if(WarStart == 0)
    {
        SetPlayerTeamFromClass(playerid, classid);
    }
    if(WarStart == 1)
    {
       
        SendClientMessage(playerid,COLOR_ADMIN,"*** An Admin is Selecting Team for You");
        for(new i;i<MAX_PLAYERS;i++)
        {
            if(IsPlayerAdmin(i))
            {
                if(Team[i] == 3)
                {
                    new string[256];
                    format(string,sizeof(string),"~r~Dx\n~b~%s\n~w~Spectator",oppclan);
                    new pName[MAX_PLAYER_NAME];
                    GetPlayerName(playerid,pName,sizeof(pName));
                    new string2[256];
                    format(string,sizeof(string),"Select Team for %s",pName);
                    playerjoin = playerid;
                    ShowPlayerDialog(i,6,2,string2,string,"This One","Kick");
                }
            }
        }
    }
    return 1;
}
its a dialog for when a new player is requesting class.. and a war is going on.. the admin will decide what to do with the new player.. the new player gets the client message.. but i as an admin logged in rcon.. do not see the dialog
Reply
#2

Debug it.
Reply
#3

Quote:
Originally Posted by MP2
Посмотреть сообщение
Debug it.
mind explaining a bit ?? debug it how ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)