Jump to content

[AMXX] Transfer 4 All


LondoN eXtream

Recommended Posts

Descriere: Toti isi pot schimba echipa print /t, /ct, /spec

Autor: dK^aLeX

Download:

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
 
new const Tag[] = "[^x04Transfer^x03]"
new const g_MESSAGE[] = "Nu esti in viata!"
 
public plugin_init()
{
register_plugin("Transfer 4 All", "1.0", "dK^aLeX")
 
set_task( 60.0, "Transfer", .flags="b" )
 
register_clcmd("say /t", "Terorist")
register_clcmd("say_team /t", "Terorist")
register_clcmd("say /ct", "Counter")
register_clcmd("say_team /ct", "Counter")
register_clcmd("say /spec", "Spectator")
register_clcmd("say_team /spec", "Spectator")
}
 
public Terorist(id)
{
if(!is_user_alive(id))
{
return;
client_print(id, print_chat, "%s %s", Tag, g_MESSAGE)
}
 
 
new name[32]
get_user_name(id, name, 31)
 
cs_set_user_team(id, CS_TEAM_T)
 
 
client_print(0, print_chat, "%s Jucatorul %s s-a mutat la echipa ^x04Tero^x03", Tag, name)
}
 
public Counter(id)
{
if(!is_user_alive(id))
{
return
client_print(id, print_chat, "%s %s", Tag, g_MESSAGE)
}
 
new name[32]
get_user_name(id, name, 31)
 
cs_set_user_team(id, CS_TEAM_CT)
client_print(0, print_chat, "%s Jucatorul %s s-a mutat la echipa ^x04Counter^x03", Tag, name)
}
 
public Spectator(id)
{
if(!is_user_alive(id))
{
return;
client_print(id, print_chat, "%s %s", Tag, g_MESSAGE)
}
 
new name[32]
get_user_name(id, name, 31)
 
cs_set_user_team(id, CS_TEAM_SPECTATOR)
client_print(0, print_chat, "%s Jucatorul %s s-a mutat la echipa ^x04Spectator^x03", Tag, name)
}
 
public Transfer(id)
{
client_print(0, print_chat, "%s Scrie /t, /ct, /spec pentru a iti schimba echipa!", Tag)
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...