Team invite
#4

Hello!

You can do it like this:
PHP Code:
if(listitem == 3//Assasins
{
    
ShowPlayerDialog(playeridDIALOG_TEAMSDIALOG_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...

Maybe you have to fill in the positions and camera positions for the team selection.

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;

You can take this command. Maybe you have to correct your command processor and something else like sscanf and so on.

Best regards
Reply


Messages In This Thread
Team invite - by Spawe - 16.11.2018, 07:12
Re: Team invite - by TheToretto - 16.11.2018, 07:23
Re: Team invite - by Spawe - 16.11.2018, 16:38
Re: Team invite - by Mencent - 16.11.2018, 16:58
Re: Team invite - by Spawe - 16.11.2018, 22:34
Re: Team invite - by Mencent - 17.11.2018, 05:47

Forum Jump:


Users browsing this thread: 1 Guest(s)