OnPlayerCommandPerformed Problem - 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: OnPlayerCommandPerformed Problem (
/showthread.php?tid=269635)
OnPlayerCommandPerformed Problem -
Lorenc_ - 17.07.2011
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(GetPVarInt(playerid, "UsingKillstreak") == 1) return SendError(playerid, "You cannot use command while using a killstreak");
return 1;
}
Hello, while using ZCMD I noticed that 'OnPlayerCommandPerformed' was the new 'OnPlayerCommandText'.
This failed to work, I can still type the command...
Does anyone have a fix for this?
Re: OnPlayerCommandPerformed Problem -
Vince - 17.07.2011
Try OnPlayerCommandReceived instead.
Re: OnPlayerCommandPerformed Problem -
Lorenc_ - 17.07.2011
Worked, thats mate