SA-MP Forums Archive
how to call a ZCMD command with a function - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to call a ZCMD command with a function (/showthread.php?tid=232211)



how to call a ZCMD command with a function - YungGee - 27.02.2011

how can i use a function to call a ZCMD command?


Re: how to call a ZCMD command with a function - [L3th4l] - 27.02.2011

pawn Код:
CallLocalFunction("Test", "i", playerid);

forward Test(playerid);
public Test(playerid)
{
    return cmd_kill(playerid, "");
}
Use your own way to call that function. ( Make sure it passes a playerid parameter! )