Quote:
Originally Posted by Income
pawn Код:
public OnPlayerDisconnect(playerid, reason) { if(/* is player tied var*/) { Kick(playerid); } return 1; }
|
So basically - if the player is disconnecting - disconnect them. Please tell me you understand how silly that sounds.
Quote:
Originally Posted by Income
What are the chances of this snippet to work(?)
pawn Код:
CMD:q(playerid, params[]) { if(/* is player tied */) return SendClientMessage(playerid, 0xAFAFAFAA, "Error: You cannot quit during being tied!"); return 1; }
|
Absolutely 0. Client-side commands are processed in the SA-MP client before OnPlayerCommandText is called (which it isn't for client commands). Would be nice though.