Invite problem
#1

How can i do an /invite system something like this: When you /invite someone to show him/her faction skins and to use "next" and "done", after he/she chose the skin, to set position where he was when he got /invite, with his skin.
Reply
#2

It's a huge script, it also saves the character is faction.
Use GF functions, there's "Next" and "Done" + /invite system.
Reply
#3

I have this.. But i have a problem, when i write "done", i will spawn with another skin..
Reply
#4

What skin do you get when spawning after typing done?
Reply
#5

pawn Код:
//----------------------------------[INVITE]------------------------------------------------
    if(strcmp(cmd, "/invite", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]");
                return 1;
            }
            new para1;
            new ftext[20];
            para1 = ReturnUser(tmp);
            if (PlayerInfo[playerid][pLeader] >= 1)
            {
                if(IsPlayerConnected(para1))
                {
                    if(para1 != INVALID_PLAYER_ID)
                    {
                            if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255)
                            {
                                if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1]= 71; }
This is invite for PD.. after DONE i will have skin 71..
Reply
#6

Then what is problem?
Change 71 to any other skin you would like to put,

(If that's not what you meant, then explain me better...)
Reply
#7

When i invite you, you have to choose the skin which you want to have.. When i invite you, you will respawn with 71 skin, not with that skin which you chose.
Reply
#8

Help me .
Reply
#9

UPPPPPPPPPP.
Reply
#10

UPPPPP.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)