[Plugin] Pawn.CMD

PC_EmulateCommand(playerid, "/cmdtest");
Reply

Unfortunately, this plugin is incompatible with JIT, as if you use this with JIT, the commands mess up
https://www.youtube.com/watch?v=IddjXcBm8j4


Will it be possible to make it compatible?
Reply

Quote:
Originally Posted by Kaperstone
Посмотреть сообщение
Unfortunately, this plugin is incompatible with JIT, as if you use this with JIT, the commands mess up
https://www.youtube.com/watch?v=IddjXcBm8j4
Will it be possible to make it compatible?
I use JIT along with this plugin and no problems at all
Reply

Quote:
Originally Posted by Uberanwar
Посмотреть сообщение
I use JIT along with this plugin and no problems at all
What version of JIT do you use.
Reply

Quote:
Originally Posted by Kaperstone
Посмотреть сообщение
What version of JIT do you use.
The latest one, 2.2. Maybe try to change the plugin order? jit should be in the first line of plugins in server.cfg.
Reply

How do you call a Pawn.CMD command from another command?

Found already
PHP код:
PC_EmulateCommand(playerid"/command"); 
Reply

PHP код:
alias:createobject("cobj""cobject"); 
gives error

PHP код:
error 010invalid function or declaration 
Reply

To call use callcmd:cmdname(playerid,params[])
Reply

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
PHP код:
alias:createobject("cobj""cobject"); 
gives error

PHP код:
error 010invalid function or declaration 
I don't think it can be because of conflicting with CreateObject. Correct me if I'm wrong.
Reply

Nice Bro
Reply

when an update
Reply

Is there are difference between return 1 and return 0 ?
Reply

Quote:
Originally Posted by Mopok
Посмотреть сообщение
Is there are difference between return 1 and return 0 ?
return 0 will not perform the command and return 1 will. (1 - True | 0 - False)
Reply

Updated to 3.2.0.
Reply

Included in script, added in plugins row, but commands don't work, no errors, no server-log outputs, i enter command and nothing happening.
Any fix?
Reply

Does Pawn.CMD support 0.3.DL?
Reply

It does
Reply

Quote:
Originally Posted by Danisoni
Посмотреть сообщение
Included in script, added in plugins row, but commands don't work, no errors, no server-log outputs, i enter command and nothing happening.
Any fix?
same problem. i using centos7, plugin 3.2.0
Reply

Try 3.1.4.
Reply

How could I put restrictions on commands, that is, in an event system, if I enter the event I can not use the command, I already have the variable bool. But if I use / salirevento I'll come out of it. I'm using Pawn.CMD and I really did not find help.

I tried to use this code in OnPlayerCommandReceive but not works, and in OnPlayerCommandText works but the excepcion not works with /salirevento.


Код:
public OnPlayerCommandReceived(playerid, cmd[], params[], flags)  //Not works 
{
    if(CmdBloq5[playerid] == 1)
    {
	    PlayerPlaySound(playerid,1140,0.0,0.0,0.0);
	    GameTextForPlayer(playerid,"~n~~p~Estas en un ~r~Evento ~n~~w~usa /Salirevento",3000,3);
	    return 1;
	}
}

public OnPlayerCommandText(playerid, cmdtext[])  //Not works
{
    if(CmdBloq5[playerid] == 1)
    {
	    PlayerPlaySound(playerid,1140,0.0,0.0,0.0);
	    GameTextForPlayer(playerid,"~n~~p~Estas en un ~r~Evento ~n~~w~usa /Salirevento",3000,3);
	    return 1;
    }
}
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)