OnPlayerCommandPerformed Problem
#1

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?
Reply
#2

Try OnPlayerCommandReceived instead.
Reply
#3

Worked, thats mate
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)