05.12.2009, 13:10
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;
}