SA-MP Forums Archive
Help me, please - 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: Help me, please (/showthread.php?tid=450760)



Help me, please - Alienwar3 - 14.07.2013

Hello great community, I have a problem with a command that hise is / fakecmd. Everything works fine but when attaching / fakecmd ID, send the fakecmd to id 0 (is an NPC), how I can fix?
pawn Код:
if(sscanf(params, "us[64]", params[0], params[1])) return SendClientMessage(playerid, COLOR_GREY, "/fakecmd [playerid] [cmd]");
            if(IsPlayerConnected(params[0]))
            {
                CallRemoteFunction("OnPlayerCommandText", "is", params[0], params[1]);
            }