How to show Player's Team in a Dialog
#3

Alright. If i have corretly understand this looks like that, there is an exemple here. (Maybe wrong, sorry)
PHP код:
#include <zcmd>
#include <sscanf2>

CMD:info(playeridparams[])
{
    switch(
gTeam[giveplayerid])
    {
        case 
TEAM_COP:
        {
            new 
str[90];
            
format(strsizeof(str), "{FF0000}Skill/Job: {FFFFFF}Police Officer");
        }
        case 
TEAM_ARMY:
        {
            new 
str[90];
            
format(strsizeof(str), "{FF0000}Skill/Job: {FFFFFF}Army");
        }
        
ShowPlayerDialog(playerid986DIALOG_MSGBOX"Infos"str"button1""button2");
    }
    return 
1;

Reply


Messages In This Thread
How to show Player's Team in a Dialog - by humayunaftabkhan02 - 02.05.2016, 16:34
Re: How to show Player's Team in a Dialog - by Godey - 02.05.2016, 16:39
Re: How to show Player's Team in a Dialog - by Dayrion - 02.05.2016, 16:42
Re: How to show Player's Team in a Dialog - by humayunaftabkhan02 - 02.05.2016, 16:43
Re: How to show Player's Team in a Dialog - by Godey - 02.05.2016, 16:48
Re: How to show Player's Team in a Dialog - by Dayrion - 02.05.2016, 16:53

Forum Jump:


Users browsing this thread: 2 Guest(s)