Scripts Collecting
#4

Here Example



pawn Код:
// IN FIRST FILTERSCRIPT
public OnPlayerCommandText(playerid, cmdtext[])
{
    // **** CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE *****
    if(!strcmp(cmdtext, "/help", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /help command!");
        return 1;
    }
    // **** CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE CUT HERE *****
   
    return 0;
   
}

So you copy the COMMAND from INSIDE the public function,
and paste it INSIDE the public function in the other script


pawn Код:
// IN THE OTHER FILTERSCRIPT
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/help", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /help command!");
        return 1;
    }

    if(!strcmp(cmdtext, "/hi", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /hi command!");
        return 1;
    }

    if(!strcmp(cmdtext, "/test", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /test command!");
        return 1;
    }

    if(!strcmp(cmdtext, "/grab", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /grab command!");
        return 1;
    }

    if(!strcmp(cmdtext, "/grub", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /grub command!");
        return 1;
    }
   
   
    // ***** PASTE HERE PASTE HERE PASTE HERE
   
    // >>>>>>>
   
    // *****************************************************
    return 0;
lol,i copied this example from my topic in script discussion
Reply


Messages In This Thread
Scripts Collecting - by Mohamed96100 - 07.06.2011, 01:38
Re: Scripts Collecting - by Gamer_Z - 07.06.2011, 01:45
Re: Scripts Collecting - by Mohamed96100 - 07.06.2011, 01:51
Re: Scripts Collecting - by misho1 - 07.06.2011, 01:55
Re: Scripts Collecting - by Mohamed96100 - 07.06.2011, 01:57
Re: Scripts Collecting - by Mark_Weston - 07.06.2011, 02:04

Forum Jump:


Users browsing this thread: 2 Guest(s)