02.05.2016, 16:42
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(playerid, params[])
{
switch(gTeam[giveplayerid])
{
case TEAM_COP:
{
new str[90];
format(str, sizeof(str), "{FF0000}Skill/Job: {FFFFFF}Police Officer");
}
case TEAM_ARMY:
{
new str[90];
format(str, sizeof(str), "{FF0000}Skill/Job: {FFFFFF}Army");
}
ShowPlayerDialog(playerid, 986, DIALOG_MSGBOX, "Infos", str, "button1", "button2");
}
return 1;
}