[FilterScript] [KiiD] /help Command
#6

This FS uses only one Function. If someone begginner want to learn how to script and he/she really wants it then I believe he/she will read the wiki. SendClientMessage is the first function I learnt, so I think is a bit impossible someone doesn't know it. Anyway, as this is your first FS and I will don't say more but one very simple note.
It should return a value on the end of the command.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/help",cmdtext)) {
        SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
        SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
        SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
        SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
        SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
        SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
        SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
        SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
        SendClientMessage(playerid,0xFFFFFFFF,"Edit This Text");
        return 1; // it needs to return a value here.
    }
    return 0;
}
Reply


Messages In This Thread
[KiiD] /help Command - by KiiD - 02.02.2012, 11:35
Re: [KiiD] /help Command - by vassilis - 02.02.2012, 11:44
Re: [KiiD] /help Command - by KiiD - 02.02.2012, 11:46
Re: [KiiD] /help Command - by RoleplayEditor - 02.02.2012, 12:31
Re: [KiiD] /help Command - by Gravity4501 - 02.02.2012, 12:36
Re: [KiiD] /help Command - by Konstantinos - 02.02.2012, 12:42
Re: [KiiD] /help Command - by RuSke - 02.02.2012, 12:50
Re: [KiiD] /help Command - by TheBetaFox - 02.02.2012, 14:34
Re: [KiiD] /help Command - by suhrab_mujeeb - 02.02.2012, 17:05
Re: [KiiD] /help Command - by KiiD - 02.02.2012, 19:47

Forum Jump:


Users browsing this thread: 1 Guest(s)