10.06.2011, 21:23
Hello, how can I block symbols like ~ > < § $ ?
Like when I type "/announce This is an ~ example" it should block the announce because it contains a ~
The announce command:
Like when I type "/announce This is an ~ example" it should block the announce because it contains a ~
The announce command:
pawn Код:
dcmd_announce(playerid,params[])
{
if(AccInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
{
if(!strlen(params)) return
SendClientMessage(playerid, LIGHTBLUE2, "Usage: /announce [Text]") &&
SendClientMessage(playerid, orange, "Function: Will Announce the specified Message in screen");
SendCommandToAdmins(playerid,"Announce");
return GameTextForAll(params,4000,3);
}
else return ErrorMessages(playerid, 7);
}