29.03.2015, 08:20
pawn Код:
!strcmp(cmd, "/engine", true) == 0
Either just have !strcmp or == 0, not both.
And the second "|| strcmp" check's if it does not return 0, since you don't have ! or == 0.
Therefore your command will trigger if you use /engine or anything other than /e.
So you need to put ! or == 0 with the second as well.
(Note: Strcmp returns 0 if you entered the string, /engine or /e, but it return 1 or -1 if you did not.)
OnPlayerShootPlayer requires the OPSP (OnPlayerShootPlayer) include.