Need a lil help in this script!
#1

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!
Reply
#2

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

This is for strcmp.

pawn Код:
// onplayercommandtext

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

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;
}
Reply
#5

Thank you Guys! Thank you so much!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)