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

I know this but I wanted to make something like, the dialog will show whichever team he would be in. Not only Police Officer for every team.

pawn Код:
if(gTeam[playerid] == TEAM_COP)
    {
    format(occupation, sizeof(occupation), "Police Officer");
    }
    else if(gTeam[playerid] == TEAM_ARMY)
    {
    format(occupation, sizeof(occupation),"S.A. Army Officer");
    }
    else if(gTeam[playerid] == TEAM_CIVIL)
    {
    format(occupation, sizeof(occupation),"Civillian");
    }
    else if(gTeam[playerid] == TEAM_CARFIX)
    {
    format(occupation, sizeof(occupation),"Mechanic");
    }
    else if(gTeam[playerid] == TEAM_MEDIC)
    {
    format(occupation, sizeof(occupation),"Medic");
    }
It's fixed now. This was what I wanted.
Thankyou for your reply mate!


Edit: Yes Dayrion, this was exactly what I wanted. Thank you so much mate! <3
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: 1 Guest(s)