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

So I was making a /info command which tells player his information like if he has drugs, wallet etc.
I wanted to make that the /info command also shows his team name like Police Officer / Army Officer / Civillian
I can do that by SendClientMessage but how do I do it as a dialog.

This is how I did using SendClientMessage:
pawn Код:
if(gTeam[giveplayerid] == TEAM_COP) {
    SendClientMessage(playerid,-1,"{FF0000}Skill/Job: {FFFFFF}Police Officer");
    }
else
if(gTeam[giveplayerid] == TEAM_ARMY) {
    SendClientMessage(playerid,-1,"{FF0000}Skill/Job: {FFFFFF}Army");
    }
..and so on.

I want to make this show in Dialog that If he's a Police Officer, It'll show Skill/Job: Police Officer
Please do explain too as I'm new and I would like to learn it so I won't come again asking for the same.
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)