04.12.2009, 22:14
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.
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.
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 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.