Quote:
Originally Posted by iggy1
I think you need to use OnPlayerCommandRecieved. Returning 0 there will prevent the command from being performed.
|
Quote:
Originally Posted by Konstantinos
Actually OnPlayerCommandReceived is the correct callback.
pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[]) { if(!LoggedIn[playerid]) { SendClientMessage(playerid,COLOR_GREEN,"You have to login first"); return 0; } return 1; }
|
Quote:
Originally Posted by Jefff
Answer
pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[]) {
if(!LoggedIn[playerid]) return !SendClientMessage(playerid,COLOR_GREEN,"You have to login first");
return 1; }
|
lol, my bad..
i tried iggy's post in a wrong way. sorry :\