17.02.2015, 15:53
Is there a way to trigger zcmd commands from a filterscript? (commands are in the gamemode itself)
//In your gamemode
forward CallCommand(playerid, params[]);
public CallCommand(playerid, params[])
{
cmd_command(playerid, params);
return 1;
}
// In your filterscript
CallRemoteFunction("CallCommand", "is", <some player id>, <some parameters string>);
Is there a way to trigger zcmd commands from a filterscript? (commands are in the gamemode itself)
|
No, you cant do so by creating commands in filterscript.
Or, maybe you can use this https://sampwiki.blast.hk/wiki/CallRemoteFunction I am not sure though. |