Quote:
Originally Posted by CutX
i forgot the return for the cmd at the end :P
pawn Код:
CMD:cc(playerid,params[]) { if (APlayerData[playerid][LoggedIn] == true) { if (APlayerData[playerid][PlayerLevel] >= 2) for(new i = 0; i < 100; i++) SendClientMessageToAll(0, "\n"); SendClientMessageToAll(-1," Chat Box Cleared"); } return 1; }
|
Yours will still display "Chat Box Cleared" even if the player was not of the appropriate level.