SA-MP Forums Archive
clan system HELP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: clan system HELP (/showthread.php?tid=279412)



clan system HELP - Horrible - 27.08.2011

pawn Код:
CMD:invite(playerid, params[])
{
    new target,playern[MAX_PLAYER_NAME];
    GetPlayerName(target,playern,MAX_PLAYER_NAME);
    format(name, sizeof(name), "[3p]%s", playern);
    format(name1, sizeof(name1), "[HS]%s", playern);
    if(leader3p[playerid] == 1)
    {
    if(sscanf(params, "ud", target)) return SendClientMessage(playerid, 0xFFFF00AA, "Syntax: /invite id");
    if(!IsPlayerConnected(target)) return SendClientMessage(playerid, -1, "Invalid playerid!");
    SetPlayerName(target,name);
    }
    if(leaderhs[playerid] == 1)
    {
    if(sscanf(params, "ud", target)) return SendClientMessage(playerid, 0xFFFF00AA, "Syntax: /invite id");
    if(!IsPlayerConnected(target)) return SendClientMessage(playerid, -1, "Invalid playerid!");
    SetPlayerName(target,name1);
    }
    return 1;
}
I dont know how to make /ckick(kick from clan)/delete the player tag
please help me...


Re: clan system HELP - Kingunit - 27.08.2011

The invite code works by himself?