SA-MP Forums Archive
Need a lil help in this script! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need a lil help in this script! (/showthread.php?tid=276508)



Need a lil help in this script! - adios1 - 14.08.2011

Guys uhm I wonder how to script the uhm like when I type /ddkjsa and the server will say Server: Unknown Command. And I wanna change that Unknown Command to Unknown Command Please Use /help or /cmds I need it badly Guys! ill wait for your reps! CHEERS!


Re: Need a lil help in this script! - Lorenc_ - 14.08.2011

What command processor are you using? I need to know inorder to do it, some have ZCMD some have strcmp


Re: Need a lil help in this script! - grand.Theft.Otto - 14.08.2011

This is for strcmp.

pawn Код:
// onplayercommandtext

public OnPlayerCommandText(playerid, cmdtext[])
{
      // other stuff here
      return SendClientMessage(playerid,color,"Unknown Command. Please Use /help Or /cmds.");
}



Re: Need a lil help in this script! - Grim_ - 14.08.2011

Likewise, this is for ZCMD.
pawn Код:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
   if( !success )
      return SendClientMessage( playerid, -1, "Unknown command. Please use /help or /cmds." );

   return 0;
}



Re: Need a lil help in this script! - adios1 - 14.08.2011

Thank you Guys! Thank you so much!