16.11.2018, 16:58
Hello!
You can do it like this:
Maybe you have to fill in the positions and camera positions for the team selection. 
You can take this command. Maybe you have to correct your command processor and something else like sscanf and so on. 
Best regards
You can do it like this:
PHP Code:
if(listitem == 3) //Assasins
{
ShowPlayerDialog(playerid, DIALOG_TEAMS, DIALOG_STYLE_LIST, "Seleccione un equнpo", "{77B45A}Of Dragons\n{59BCD6}Templarios\n{AF6AFF}Assasins 4volt", "Seleccionar","");
SendClientMessage(playerid,-1,"WARNING: You have to get an invite for this team!");
//(cam) positions...
return 1;
}
Quote:
|
//(cam) positions... |

PHP Code:
ocmd:invite(playerid,params[])
{
new pID,team[10];
if(sscanf(params,"is[10]",pID,team))return SendClientMessage(playerid,-1,"WARNING: /invite [playerid] [Team (Assasins)]");
if(!strcmp(team,"assasins",true))
{
if(GetPlayerTeam(playerid) != ASSASINS)return SendClientMessage(playerid,-1,"You don't have the permission to invite people!");
SetPlayerTeam(pID,ASSASINS);
SendClientMessage(pID,-1,"You was invited to join the team assasins!");
return 1;
}
return 1;
}

Best regards

