General > Suggestions
Suggestions (archive)
[MAF]Jur1z:
[youtubeHD]K02DgLOPTmQ[/youtubeHD]
[youtubeHD]2C5aOj7IxCw[/youtubeHD]
MadMax:
disable /heal at IV races
also remove stunt are, we don't need it since we are at LS Airport
Cartman:
My suggestion is "/lockchat" because the server is not MSN, ICQ, IRQ, twitter.... the server is from race!
I use this command in "XtremeAdmin" (Xadmin) but you can change this for your admin FS.
well, Rac3r is a great scripter then I'll be very direct:
--- Code: ---enum ServerInfoEnum
{
ChatClosed
};
--- End code ---
--- Code: ---public OnPlayerCommandText(playerid,cmdtext[])
{
dcmd(lockchat,8,cmdtext);
dcmd(unlockchat,10,cmdtext);
return 0;
}
--- End code ---
--- Code: ---//===[/lockchat]===
dcmd_lockchat(playerid,params[])
{
if(IsPlayerCommandLevel(playerid,"lockchat"))
{
#pragma unused params
//SendCommandMessageToAdmins(playerid,"Lockchat");
new string[256];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"O administrador '%s' fechou o chat para o público",name);
SendClientMessageToAll(COLOR HERE,string);
ServerInfo[ChatClosed] = 1;
}
else return SendLevelErrorMessage(playerid,"lockchat");
return 1;
}
//===[/unlockchat]===
dcmd_unlockchat(playerid,params[])
{
if(IsPlayerCommandLevel(playerid,"unlockchat"))
{
#pragma unused params
//SendCommandMessageToAdmins(playerid,"unLockchat");
new string[256];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"O administrador '%s' abriu o chat para o público",name);
SendClientMessageToAll(COLOR HERE,string);
ServerInfo[ChatClosed] = 0;
}
else return SendLevelErrorMessage(playerid,"unlockchat");
return 1;
}
--- End code ---
--- Code: ---public OnPlayerText(playerid,text[])
{
if(ServerInfo[ChatClosed] == 1 && !IsPlayerXAdmin(playerid))
{
SendClientMessage(playerid,COLOR HERE,"O chat está trancado para o público");
return 0;
}
return 1;
}
--- End code ---
My nick in game is Tancredi, but my old nick is [KaE]Cartman, and i from Brazil and you need convert all messages from Portuguese into English
if there is any problem, let me know ok? basically this is the command. I hope you like
Cya dudes!
[MAF]falky:
Nifty idea. :D
ﱡ קּﻰﺢ Love:
As much as i get from that code its for admins to lock people from chatting right? It should be per-player choice.Admins should get informed about if some people locked the chat for themselves.
With this way we can still drive with map on and dont get chit chats disturbing us, fine. :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version