17.03.2012, 09:17
pawn Код:
COMMAND:announce(playerid, params[])
{
SendAdminText(playerid, "/announce", params);
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player's admin-level is at least 1
if (APlayerData[playerid][PlayerLevel] >= 1)
{
GameTextForAll(params,4000,3);
}
else
return 0;
}
else
return 0;
// Let the server know that this was a valid command
return 1;
}