Need help with team cmds!
#1

Well, i have this.
PHP код:
#define team_civ   1
#define team_ter   2 
(showplayerdialog selecting)
PHP код:
pTeam[playerid] = team_civ;
pTeam[playerid] = team_ter
And i use this platform on my cmds.
PHP код:
CMD:command(playerid,params[]) 
I need command for team_civ example.
Reply
#2

Use:

PHP код:
if(GetPlayerTeam(playerid) == team_civ)
{
    
//Rest of the command here!

Reply
#3

Example

Код:
CMD:command(playerid, params[])
{
    if(pTeam[playerid] == team_civ)
    {
         //Put your codes here
    }
    else return SendClientMessage(playerid, 0xFF0000FF,"[ERROR]: You are not in team_civ");
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)