SA-MP Forums Archive
y_commands question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: y_commands question (/showthread.php?tid=500935)



y_commands question - Dubya - 15.03.2014

Hello, I am wondering I can use a filterscript to all a command that's in the main script e.g:

mainscript:
pawn Код:
YCMD:togphone(playerid, params[], help) {
if(help){ return 1;}
SendClientMessage(playerid, -1, "Command 'togphone' called");
return 1;
}
filterscript:
pawn Код:
// >> Inside of OnDialogResponse
Command_ReProcess(playerid, "togphone", false);



Re: y_commands question - ShinichiKudou - 15.03.2014

Like this setup?
CMD in main gamemode and on dialogresponse on filterscript?