07.06.2011, 01:55
Here Example
So you copy the COMMAND from INSIDE the public function,
and paste it INSIDE the public function in the other script
lol,i copied this example from my topic in script discussion
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;