Need Help with Teams
#4

Thats basically It, But after you have set the Team with AccoutnInfo[playerid][pFaction], Paste the line which you use to save a players Team undernearth it. You should know what yoru Team saving line is since you have your own Save system.

pawn Код:
if(strcmp(cmd, "/joingroove", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(AccountInfo[playerid][pFaction] != TEAM_NOTHING) return SendClientMessage(playerid, COLOR_ORANGE, "You are in another faction, exit it to join groove !");
            {
                if (PlayerToPoint(8.0, playerid, 1542.9487,-1682.6167,13.5555))
                {
                    AccountInfo[playerid][pFaction] = TEAM_GROOVE;
                    SendClientMessage(playerid, COLOR_ORANGE, "congrats ! you're now in Groove family !!!");
                    //Put the Team saving Line Here
                }
            }
        }
        return 1;
    }
Reply


Messages In This Thread
Need Help with Teams - by *BueNoOo* - 04.12.2009, 22:14
Re: Need Help with Teams - by *BueNoOo* - 04.12.2009, 23:29
Re: Need Help with Teams - by *BueNoOo* - 05.12.2009, 12:54
Re: Need Help with Teams - by miokie - 05.12.2009, 13:10
Re: Need Help with Teams - by *BueNoOo* - 05.12.2009, 14:22
Re: Need Help with Teams - by DJDhan - 05.12.2009, 14:31
Re: Need Help with Teams - by *BueNoOo* - 05.12.2009, 14:35
Re: Need Help with Teams - by DJDhan - 05.12.2009, 14:41
Re: Need Help with Teams - by *BueNoOo* - 05.12.2009, 14:47
Re: Need Help with Teams - by *BueNoOo* - 05.12.2009, 18:05

Forum Jump:


Users browsing this thread: 2 Guest(s)