SA-MP Forums Archive
How to use ZCMD and Larp? - 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 use ZCMD and Larp? (/showthread.php?tid=215902)



How to use ZCMD and Larp? - GuikBretas - 24.01.2011

Hey, when i put #include <ZCMD> on my server (GM: LARP), bug the original commands, appear SERVER: Unknown Command, and when i remove the include, back to normal, how to resolve?


Re: How to use ZCMD and Larp? - Haydz - 24.01.2011

You need to convert you old commands to zcmd also.


Re: How to use ZCMD and Larp? - Sergei - 24.01.2011

Rename OnPlayerCommandText to ProcessOldCommand (or whatever).

Add in your script:
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) success = ProcessOldCommand(playerid,cmdtext);
    return success;
}