Quote:
Originally Posted by Konstantinos
[..]
- The else statement will always get executed and the code will stop there if everything is alright (correct id, not in vehicle etc.) and will never execute the code to freeze and actually cuff the player.
[..]
PHP код:
// Modify "..EXPRESSION_HERER.." with what you need. In example, player not being a cop.
if (..EXPRESSION_HERE..) return SendClientMessage(playerid, 0xC0C0C0FF, "You dont have permisson to access this command.");
|
I wrote in the command that you have modify it and add an expression like the player is not a police officer or whatever. That was your code so you had it there for a reason. If you don't want it then remove it but I'm pretty sure you don't want random players to use the command.