26.07.2012, 21:05
Well I would try it like this:
This is the most elegant way I can imagine, just dunno if it works how I expect.
If /q is a command in itself then it will work, but I fear that /q is embedded in the samp application itself.
Let me know if it worked.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext){
if(!strcmp("/logout", cmdtext, true)){
return OnPlayerCommandText(playerid, "/q");
}
return 0;
}
If /q is a command in itself then it will work, but I fear that /q is embedded in the samp application itself.
Let me know if it worked.