Team invite +REP
#9

-> OnDialogResponse

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;
}
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.
Reply


Messages In This Thread
Team invite +REP - by Spawe - 18.11.2018, 22:08
Re: Team invite +REP - by scripter112 - 19.11.2018, 05:23
Re: Team invite +REP - by Spawe - 19.11.2018, 05:46
Re: Team invite +REP - by scripter112 - 19.11.2018, 05:53
Re: Team invite +REP - by Spawe - 19.11.2018, 18:26
Re: Team invite +REP - by Spawe - 20.11.2018, 18:21
Re: Team invite +REP - by Electrifying - 20.11.2018, 19:05
Re: Team invite +REP - by Spawe - 20.11.2018, 19:12
Re: Team invite +REP - by OKStyle - 21.11.2018, 04:13
Re: Team invite +REP - by Spawe - 21.11.2018, 04:24

Forum Jump:


Users browsing this thread: 1 Guest(s)