28-07-2020, Saat: 16:58
28-07-2020, Saat: 17:00
Sadece Userlardamı Yoksa Adminlerdedemi Olcak ?
28-07-2020, Saat: 17:05
Yeşil yazma ve diğer tag eklentilerini kapatın
PHP Kod:
#include <amxmodx>
new Message[192];
new alive[16], strName[191], strText[191];
new const Kurucu_TAG = "[ - Kurucu - ]";
new const Admin_TAG = "[ - Admin - ]";
new const Slot_TAG = "[ - Slot - ]";
new const Other_TAG = "[ - Server IP - ]";
new Mac;
public plugin_init()
{
register_plugin("Renkli Yazma", "3.0", "By.KinG");
register_clcmd("say", "hook_say");
register_message (get_user_msgid ("SayText"), "avoid_duplicated");
Mac = register_cvar("Mac", "0");
}
public avoid_duplicated (msgId, msgDest, receiver)
{
return PLUGIN_HANDLED;
}
public hook_say(id)
{
if(get_pcvar_num(Mac) == 1)
{
client_print(id, print_center, "[ - Yazi Yazma Kapali - ]");
return PLUGIN_CONTINUE;
}
else
{
read_args(Message, 191)
remove_quotes(Message)
if(Message[0] == '@' || Message[0] == '!' || Message[0] == '/' || equal(Message, "")) return PLUGIN_CONTINUE;
new name[32]
get_user_name(id, name, 31)
new bool:Kurucu = false;
new bool:Admin = false;
new bool:Slot = false;
if(get_user_flags(id) & ADMIN_RCON)
{
Kurucu = true;
}
else if(get_user_flags(id) & ADMIN_KICK)
{
Admin = true;
}else if(get_user_flags(id) & ADMIN_RESERVATION){
Slot = true;
}
new isAlive;
if(is_user_alive(id))
{
isAlive = 1
alive = ""
}
else
{
isAlive = 0
alive = "^x04[ - DEAD - ]"
}
static Color[10]
if(Kurucu)
{
Admin = false;
Slot = false;
get_user_team(id, Color, 9);
format(strName, 191, "%s^x04%s ^x03%s", alive, Kurucu_TAG, name);
copy(Color, 9, "TERRORIST");
format(strText, 191, "^x03%s", Message);
}
else if(Admin)
{
Kurucu = false;
Slot = false;
get_user_team(id, Color, 9);
format(strName, 191, "%s^x04%s ^x03%s", alive, Admin_TAG, name);
format(strText, 191, "^x04%s", Message);
}else if(Slot){
Kurucu = false;
Admin= false;
get_user_team(id, Color, 9);
format(strName, 191, "%s^x04%s ^x03%s", alive, Slot_TAG, name);
format(strText, 191, "^x04%s", Message);
}
else
{
get_user_team(id, Color, 9);
format (strName, 191, "%s^x04%s ^x03%s", alive, Other_TAG, name);
format (strText, 191, "%s", Message);
}
format (Message, 191, "%s^x01 : %s", strName, strText)
sendMessage (Color, isAlive)
return PLUGIN_CONTINUE;
}
}
public sendMessage(color, alive)
{
new teamName[10]
for(new player = 1; player < get_maxplayers(); player++)
{
if(!is_user_connected(player))
continue
if(alive && is_user_alive(player) || !alive && !is_user_alive(player) || get_user_flags(player))
{
get_user_team(player, teamName, 9)
changeTeamInfo(player, color)
writeMessage(player, Message)
changeTeamInfo(player, teamName)
}
}
}
public changeTeamInfo(player, team)
{
message_begin (MSG_ONE, get_user_msgid ("TeamInfo"), _, player)
write_byte (player)
write_string (team)
message_end()
}
public writeMessage (player, message)
{
message_begin (MSG_ONE, get_user_msgid ("SayText"), {0, 0, 0}, player)
write_byte (player)
write_string (message)
message_end ()
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/
28-07-2020, Saat: 17:11
nerden indiricem ? ve user admin herkeste olsun
28-07-2020, Saat: 17:19
Bunu denermisiniz ; Tıklayın
28-07-2020, Saat: 18:00
oldu ama userlerde yesil yazıyor ve kurucuda ismi normal ve yazısı yesil yapar mısınız cok şey istedim ama
28-07-2020, Saat: 23:27
Buyrun Bunu Deneyin İsterseniz ; Tıklayınız
07-10-2020, Saat: 19:33
Konunuz çözülmüş isteklere taşındı