18.11.2018, 22:08
How do I do it so that when they select the team members they say that you need an invitation
It would /invite [playerid] [members] this is my leader variable is only defined in an enum
PlayerInfo[playerid][cLider] != 1) //one is Members
It would /invite [playerid] [members] this is my leader variable is only defined in an enum
PlayerInfo[playerid][cLider] != 1) //one is Members
PHP код:
//OnPlayerRequestClass
ShowPlayerDialog(playerid, DIALOG_TEAMS, DIALOG_STYLE_LIST, "Seleccione un equнpo", "{77B45A}Of Dragons\n{59BCD6}Templarios\n{FF5FAB}Members Only", "Seleccionar","");
//OnPlayerSpawn
if(GetPlayerTeam(playerid) == DRAGONS)
{
SetPlayerPos(playerid, 318.8639, 1121.6978, 1083.8828);
SetPlayerFacingAngle(playerid, 180.1659);
SetPlayerInterior(playerid, 5);
}
else if(GetPlayerTeam(playerid) == TEMPLARIO)
{
SetPlayerPos(playerid, 2264.5317, -1209.7946, 1049.0234);
SetPlayerFacingAngle(playerid, 253.0367);
SetPlayerInterior(playerid, 10);
}
else if(GetPlayerTeam(playerid) == MEMBERS)
{
SetPlayerPos(playerid, 2324.6138, -1143.4207, 1050.4922);
SetPlayerFacingAngle(playerid, 178.6559);
SetPlayerInterior(playerid, 12);
}
//OnDialogResponse
if(listitem == 0) //Dragons
{
SetPlayerTeam(playerid, DRAGONS);
SetPlayerColor(playerid, COLOR_DRAGONS);
SpawnPlayer(playerid);
}
if(listitem == 1) //Templarios
{
SetPlayerTeam(playerid, TEMPLARIO);
SetPlayerColor(playerid, COLOR_TEMPLARIOS);
SpawnPlayer(playerid);
}
if(listitem == 2) //Members
{
SetPlayerTeam(playerid, MEMBERS);
SetPlayerColor(playerid, COLOR_MEMBERS);
SpawnPlayer(playerid);
}