Please help
#1

Some commands are executed but returns Server: Unknown Command
And i cant find that commands in gm and fs, Where can i find them.
Can we define commands in any other ?
Reply
#2

Does it happen to all commands? Are you by any chance using strcmp & zcmd together? If so that'll cause your commands not to work because strcmp and zcmd don't go together. (Not sure if it's the same with YCMD but I know ECMD was designed in the way zcmd was just with strcmp support).
Reply
#3

Код:
if(strcmp(cmd, "/kill", true) == 0)
	{
		if(PlayerCuffed[playerid] > 0 || PlayerTied[playerid] > 0)
		{
			format(string, sizeof(string), "* %s starts to punch his own balls in an attempt to suicide, but instead pisses himself and starts crying.", PlayerRPName(playerid));
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			return 1;
		}
		if(PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pTut] != 1 || PlayerInfo[playerid][pJailed] == 2 || PlayerInfo[playerid][pJailed] == 3) // COMMENTED
		{
			SendClientMessage(playerid, COLOR_GREY,"   You cannot do that at this time !");
			return 1;
		}
		if(PlayerJustDied[playerid] == 1)
		{
		    SendClientMessage(playerid, COLOR_GREY,"   You cannot do that at this time !");
			return 1;
		}
		SetPlayerHealth(playerid, 0);
  	}
Reply
#4

Quote:
Originally Posted by krytans
Посмотреть сообщение
Код:
if(strcmp(cmd, "/kill", true) == 0)
	{
		if(PlayerCuffed[playerid] > 0 || PlayerTied[playerid] > 0)
		{
			format(string, sizeof(string), "* %s starts to punch his own balls in an attempt to suicide, but instead pisses himself and starts crying.", PlayerRPName(playerid));
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			return 1;
		}
		if(PlayerInfo[playerid][pHospital] > 0 || PlayerInfo[playerid][pTut] != 1 || PlayerInfo[playerid][pJailed] == 2 || PlayerInfo[playerid][pJailed] == 3) // COMMENTED
		{
			SendClientMessage(playerid, COLOR_GREY,"   You cannot do that at this time !");
			return 1;
		}
		if(PlayerJustDied[playerid] == 1)
		{
		    SendClientMessage(playerid, COLOR_GREY,"   You cannot do that at this time !");
			return 1;
		}
		SetPlayerHealth(playerid, 0);
  	}
You need zcmd.inc and #define <zcmd> btw, What type of gamemode you running? So i can give you /kill command
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)