LuxAdmin /stats
#10

Quote:
Originally Posted by kbalor
Посмотреть сообщение
I delete the pm command in Luxadmin, and create different script take a look, this is created in gamemode.

pawn Код:
CMD:pmo(playerid, params[])
{
    if(DisablePM[playerid] == 0)
    {
        DisablePM[playerid] = 1;
        GameTextForPlayer(playerid, "~y~PM ~r~Disabled", 2000, 3);
    }
    else
    {
        DisablePM[playerid] = 0;
        GameTextForPlayer(playerid, "~y~PM ~g~Enabled", 2000, 3);
    }
    return 1;
}

CMD:pm(playerid, params[])
{
    new pID, Msg[128];
    if(sscanf(params, "ds[128]", pID, Msg)) return SendClientMessage(playerid, -1, "USAGE: /pm [PlayerID] [Message]");
    if(pID == playerid) return SendClientMessage(playerid, 0xFF0000FF, "You can't PM to yourself!");
    if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, 0xFF0000FF, "Invalid PlayerID or the PlayerID is not online!");
    if(DisablePM[pID] == 1) return GameTextForPlayer(playerid, "~n~~n~~r~Player Disabled PM", 3000, 5);
    new str[256], pName[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, sizeof(pName));
    GetPlayerName(pID, pName2, sizeof(pName2));
    format(str, sizeof(str), "PM Sent to %s (ID: %d): %s", pName2, pID, Msg);
    SendClientMessage(playerid, -1, str);
    format(str, sizeof(str), "PM from %s (ID: %d): %s", pName, playerid, Msg);
    SendClientMessage(pID, -1, str);
    return 1;
}
I tryed to add this command in my gm but :
Код:
C:\Users\ady-kryss\Desktop\RwS Actual\gamemodes\RwS.pwn(99) : error 017: undefined symbol "stoppm"
C:\Users\ady-kryss\Desktop\RwS Actual\gamemodes\RwS.pwn(101) : error 017: undefined symbol "DisablePM"
C:\Users\ady-kryss\Desktop\RwS Actual\gamemodes\RwS.pwn(101) : warning 215: expression has no effect
C:\Users\ady-kryss\Desktop\RwS Actual\gamemodes\RwS.pwn(101) : error 001: expected token: ";", but found "]"
C:\Users\ady-kryss\Desktop\RwS Actual\gamemodes\RwS.pwn(101) : error 029: invalid expression, assumed zero
C:\Users\ady-kryss\Desktop\RwS Actual\gamemodes\RwS.pwn(101) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Lines:
Код:
CMD:stoppm(playerid, params[]
Код:
if(DisablePM[playerid] == 0)
Reply


Messages In This Thread
LuxAdmin /stats - by kbalor - 25.07.2012, 15:42
Re: LuxAdmin /stats - by SuperViper - 25.07.2012, 16:23
Re: LuxAdmin /stats - by kbalor - 25.07.2012, 16:28
Re: LuxAdmin /stats - by SuperViper - 25.07.2012, 16:32
Re: LuxAdmin /stats - by kbalor - 25.07.2012, 16:35
Re: LuxAdmin /stats - by SuperViper - 25.07.2012, 16:43
Re: LuxAdmin /stats - by kbalor - 25.07.2012, 16:53
Re: LuxAdmin /stats - by SuperViper - 25.07.2012, 17:15
Re: LuxAdmin /stats - by kbalor - 25.07.2012, 17:29
Re: LuxAdmin /stats - by xSkullx - 25.07.2012, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)