Unknown Command.
#1

Hello lads,

I'm having trouble with my Anti Cheat.

I made a test command using ZCMD. When i connect to my Test Server i receive "Unknown command". My ZCMD is updated as-well.

PHP код:
CMD:guntest(playeridparams[])
{
  
GivePlayerWeapon(playerid24200);
  return 
1;
}
CMD:gunntest(playeridparams[])
{
  
ServerWeapon(playerid24200);
  return 
1;

Reply
#2

You need to convert all commands to ZCMD
Also #include <zcmd> on top of your script.
Reply
#3

Show us your OnPlayerCommandText
Reply
#4

I only have two commands, and i don't have OnPlayerCommandText
Reply
#5

First of all. You need to have all the commands conveted to ZCMD.
Next : Modify that:

Код:
CMD:guntest(playerid, params[]) 
{ 
  GivePlayerWeapon(playerid, 24, 200); 
  return 1; 
} 
CMD:gunntest(playerid, params[]) 
{ 
  ServerWeapon(playerid, 24, 200); 
  return 1; 
}
With that

Код:
CMD:guntest(playerid) 
{ 
  GivePlayerWeapon(playerid, 24, 200); 
  return 1; 
} 
CMD:gunntest(playerid) 
{ 
  ServerWeapon(playerid, 24, 200); 
  return 1; 
}
Reply
#6

Same
Reply
#7

Hmm-.. which of these two commands are you using on your server ? /guntest or /gunntest ?
Reply
#8

Both, i'm testing my anti weapon hack.
Reply
#9

Silly question did you added "streamer" to run with your server? Because i know some commands requires streamer.
Define on top:
Код:
#include <a_samp>
#include <streamer>
#include <zcmd>
#pragma tabsize 0
and then re-compile your gamemode/filterscript.

Then go to server.cfg and add plugins streamer (...)
Reply
#10

Quote:
Originally Posted by SpikeSpigel
Посмотреть сообщение
First of all. You need to have all the commands conveted to ZCMD.
Next : Modify that:

Код:
...
With that

Код:
...
ZCMD has params[]

From what I see, I think that your gamemode has any script error or something which makes ZCMD fail. Try using ZCMD in a clean gamemode to see what happens.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)