21.11.2018, 04:13
-> OnDialogResponse
You must add cmd: /invite [id] and set PlayerInfo[id][cInvite] = PlayerInfo[playerid][cLider]
Don't foget add to enum cInvite and check cLider of playerid.
pawn Код:
if(listitem == 2) // Members
{
if(!PlayerInfo[playerid][cInvite]) return ShowPlayerDialog(playerid, DIALOG_TEAMS, DIALOG_STYLE_LIST, "Seleccione un equнpo", "{77B45A}Of Dragons\n{59BCD6}Templarios\n{FF5FAB}Members Only", "Seleccionar","");
SetPlayerTeam(playerid, MEMBERS);
SetPlayerColor(playerid, COLOR_MEMBERS);
SpawnPlayer(playerid);
return 1;
}
Don't foget add to enum cInvite and check cLider of playerid.