How to create /asay [text]
#6

Quote:
Originally Posted by Lauder
Посмотреть сообщение
look:
Код:
pwn(1542) : error 017: undefined symbol "GetName"
pawn Код:
CMD:asay(playerid, params[])
{
    new String[100];
    if(PlayerInfo[playerid][AdminLevel] < 1)
        return SendClientMessage(playerid, -1, "You need to be an Adminstrator to use this command!");
    else if(sscanf(params, "s[100]", String))
        return SendClientMessage(playerid, -1, "Usage: /asay <text>");
    else
    {
        new pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
        format(String, 100, "Adminstrator %s : %s", pName, String);
        SendClientMessageToAll(-1, String);
    }
    return 1;
}
Should work
Reply


Messages In This Thread
How to create /asay [text] - by RiChArD_A - 29.03.2013, 23:56
Re: How to create /asay [text] - by SilverKiller - 30.03.2013, 00:13
Respuesta: Re: How to create /asay [text] - by RiChArD_A - 30.03.2013, 00:32
Re : How to create /asay [text] - by thegreathom - 30.03.2013, 00:32
Respuesta: Re : How to create /asay [text] - by RiChArD_A - 30.03.2013, 15:28
Re: Respuesta: Re : How to create /asay [text] - by SilverKiller - 30.03.2013, 15:36
Re: How to create /asay [text] - by Konstantinos - 30.03.2013, 15:49
Respuesta: Re: Respuesta: Re : How to create /asay [text] - by RiChArD_A - 30.03.2013, 15:52

Forum Jump:


Users browsing this thread: 1 Guest(s)