What's Wrong! /idiot [ID]
#5

Quote:
Originally Posted by Larsey123IsMe
Посмотреть сообщение
Look again
pawn Код:
#include <a_samp>
#include <zcmd>

#define FILTERSCRIPT
#define COLOR_RED 0xFF0000AA


CMD:idiot(playerid, params[])
{
    new
        otherid,
        oName[MAX_PLAYER_NAME],
        string[64]
    ;
    if (!IsPlayerAdmin(playerid)) return 0;
    if(sscanf(params, "u", otherid)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /Idiot [id]");

    GetPlayerName(playerid, oName, sizeof(oName));
    format(string, sizeof(string), "**(IDIOT)** %s <-- Is an idiot!", oName);
    SendClientMessageToAll(COLOR_RED, string);
    return 1;
}
You need to download zcmd.

Download here.

Before you can use the script above, you have to download zcmd then paste it in your pawno/includes folder, hope I helped.

Quote:
Originally Posted by Hiitch
Посмотреть сообщение
under OnPlayerCommandText, after you create the command with, zcmd(I believe), you need to do:


zcmd(idiot, 5, cmdtext); or something along those lines, but it needs to be done before the return 0;
No, that only works with dcmd.
Reply


Messages In This Thread
What's Wrong! /idiot [ID] - by Larsey123IsMe - 10.11.2010, 00:20
Re: What's Wrong! /idiot [ID] - by TheHoodRat - 10.11.2010, 00:21
Re: What's Wrong! /idiot [ID] - by Larsey123IsMe - 10.11.2010, 00:23
Re: What's Wrong! /idiot [ID] - by Hiitch - 10.11.2010, 00:32
Re: What's Wrong! /idiot [ID] - by TheHoodRat - 10.11.2010, 00:34
Re: What's Wrong! /idiot [ID] - by [L3th4l] - 10.11.2010, 00:43
Re: What's Wrong! /idiot [ID] - by Hiitch - 10.11.2010, 00:43
Re: What's Wrong! /idiot [ID] - by Larsey123IsMe - 10.11.2010, 00:47
Re: What's Wrong! /idiot [ID] - by Buzzbomb - 10.11.2010, 00:54
Re: What's Wrong! /idiot [ID] - by Larsey123IsMe - 10.11.2010, 01:28

Forum Jump:


Users browsing this thread: 1 Guest(s)