SA-MP Forums Archive
Ignore player - 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: Ignore player (/showthread.php?tid=457841)



Ignore player - ScRipTeRi - 13.08.2013

FIXED!


Re: Ignore player - -Prodigy- - 13.08.2013

pawn Код:
new g_Ignored[MAX_PLAYERS] = {INVALID_PLAYER_ID, ...};

CMD:ignore(playerid, params[])
{
    if(isnull(params)) return 0;
    new id = strval(params);
    g_Ignored[playerid] = id;
    return 1;
}

CMD:pm(playerid, params[])
{
    if(isnull(params)) return 0;
    new id = strval(params);

    if(g_Ignored[id] == playerid) return SendClientMessage(playerid, -1, "That user is ignoring you!");
    return 1;
}
Something along those lines


Re: Ignore player - ScRipTeRi - 13.08.2013

Let i make it with my self anyway thanks