21.01.2016, 23:18
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 Код:
//===========================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 0;
}
return 1;
}