Dialog Little Problem.
#1

Hello guys,
I am starting with dialogs, and i made one to choise a team in a gm that i am making....
I setted all, and others work, but this one, is seting all, the color, and sending the write message, if we write terrorists, or counter terrorists, but it doesn't set the fucking skin...

Code:
pawn Код:
if(dialogid == 6)
    {
        if(response)
        {
            new message[256+1];
            if(listitem == 0)
            {
            format(message, 256, "You selected Terrorist", listitem);
            SendClientMessage(playerid, 0xFFFFFFFF, message);
            SpawnPlayer(playerid);
            SetPlayerPos(playerid, 0.0, 0.0, 0.0);
            SetPlayerColor(playerid, T_COLOR);
            SetPlayerSkin(playerid, 222);
            }
            if(listitem == 1)
            {
              format(message, 256, "You selected Counter Terrorist!", listitem);
              SendClientMessage(playerid, 0xFFFFFFFF, message);
              SpawnPlayer(playerid);
              SetPlayerPos(playerid, 0.0, 0.0, 0.0);
              SetPlayerColor(playerid, CT_COLOR);
              SetPlayerSkin(playerid, 252);
              return 1;
            }
        }
    }
return 1;
}
Thank you...
Is it any return leack?
Reply
#2

I think the skin does not get Set
Becouse when you do SpawnPlayer();
The player gets spawned and if you have SePlayerSkin or something like that on OnPlayerSpawn
Then the SetPlayerSkin on the Dialog will not work of u see what i mean

But when u choose one of these team's do the colors change two ?

oll and one thing more
pawn Код:
format(message, 256, "You selected Terrorist", listitem);
SendClientMessage(playerid, 0xFFFFFFFF, message);
Why do you have listitem formated when your not even using it ?
Reply
#3

Change the skin when the player already spawned.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)