21.01.2016, 23:35
Quote:
hello guys, so this time i want to prevent the players from using any cmds if they weren't logged in but the player can use cmds and the clientmessage doesn't appear why ?
pawn Код:
|
Tell me if it fixes the problem or not
Код:
//===========================Anti Login CMD Use================================= public OnPlayerCommandText(playerid, cmdtext[]) { if( (udb_Exists(PlayerName2(playerid))) && (PlayerInfo[playerid][LoggedIn] == 0) ) { SendClientMessage(playerid, red, "This account is registered you need to be logged in to use any cmd"); return 1; } return 0; }