Need Help with Teams
#1

Hi all, I'm editing SFTDM and I'd like to know how to make a join crew command.
Here's what I've got so far.

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 !!!");
                return 1;
                }
I would like when player types /joingroove it'll set it in his file that he's TEAM_GROOVE now

I know this command will not work, don't tell me that. But I would like to know how to make it working ? Like I don't really know which things should I edit etc.Please help me.
I've defined : TEAM_NOTHING 0, TEAM_GROOVE 1 and yes I have a saving account system.
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: 4 Guest(s)