User
Pass
2FA
 
 

Modificare Plugin Transfer

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message680
BlueSkiLz

[Mentally Stable]



Status: Offline
(since 16-07-2019 08:32)
Joined: 18 Oct 2016
Posts: 111, Topics: 33
Location: Romania

Reputation: 34.7

Post Posted: 31-03-2019, 15:05:17 | Translate post to: ... (Click for more languages)

Salut , am si eu nevoie de acest plugin colorat daca ma puteti ajuta , va rog frumos
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init()
{
   register_plugin("Team Transfer", "1.0", "Alex");
   register_concmd("amx_ct", "cmdct", ADMIN_SLAY, "NUME : Transfera jucatorul la echipa Counter/Terror");
   register_concmd("amx_t", "cmdt", ADMIN_SLAY, "NUME : Transfera jucatorul la echipa Terror");
   register_concmd("amx_spec", "cmdspec", ADMIN_SLAY, "NUME : Transfera jucatorul la Spectator");
}

public cmdct(id, level, cid)
{
   if (!cmd_access(id, level, cid, 2))
   {
      return PLUGIN_HANDLED;
   }

   new arg[32], cmd[32];
   read_argv(0,cmd,31);
   read_argv(1,arg,31);
   new player = cmd_target(id,arg,CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF);

   if (!player)
   {
      return PLUGIN_HANDLED;
   }

   if (cs_get_user_team(player) == CS_TEAM_CT)
   {
      console_print(id, "[CS:GO]Jucatorul acela este deja in echipa Counter-Terroristilor !");
      return PLUGIN_HANDLED;
   }
   
   new name[32], name2[32];
   get_user_name(id,name,31);
   get_user_name(player,name2, 31);

   if (is_user_alive (player) )
   {
      user_silentkill(player);
   }

   cs_set_user_team(player,CS_TEAM_CT);
       log_amx("Admin %s: Task amx_ct/t %s",name, name2);
   client_print(0, print_chat, "!e[CS:GO]Adminul %s l-a mutat pe %s la echipa Counter-Terroristilor !", name, name2);

   return PLUGIN_HANDLED;
}

public cmdt(id, level, cid)
{
   if (!cmd_access(id, level, cid, 2))
   {
      return PLUGIN_HANDLED;
   }

   new arg[32], cmd[32];
   read_argv(0,cmd,31);
   read_argv(1,arg,31);
   new player = cmd_target(id,arg,CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF);

   if (!player)
   {
      return PLUGIN_HANDLED;
   }

   if (cs_get_user_team(player) == CS_TEAM_T)
   {
      console_print(id, "[CS:GO]Jucatorul acela este deja in echipa Terroristilor !");
      return PLUGIN_HANDLED;
   }
   
   new name[32], name2[32];
   get_user_name(id,name,31);
   get_user_name(player,name2, 31);

   if (is_user_alive (player) )
   {
      user_silentkill(player);
   }
   
   cs_set_user_team(player,CS_TEAM_T);
       log_amx("Admin %s: Task amx_t %s",name, name2);
   client_print(0, print_chat, "!n[CS:GO]Adminul %s l-a mutat pe %s la echipa Terroristilor !", name, name2);

   return PLUGIN_HANDLED;
}
public cmdspec(id, level, cid)
{
   if (!cmd_access(id, level, cid, 2))
   {
      return PLUGIN_HANDLED;
   }

   new arg[32], cmd[32];
   read_argv(0,cmd,31);
   read_argv(1,arg,31);
   new player = cmd_target(id,arg,CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF);

   if (!player)
   {
      return PLUGIN_HANDLED;
   }

   if (cs_get_user_team(player) == CS_TEAM_SPECTATOR)
   {
      console_print(id, "!v[CS:GO]Jucatorul acela este deja printre spectatori !");
      return PLUGIN_HANDLED;
   }
   
   new name[32], name2[32];
   get_user_name(id,name,31);
   get_user_name(player,name2, 31);

   if (is_user_alive (player) )
   {
      user_silentkill(player);
   }

   cs_set_user_team(player,CS_TEAM_SPECTATOR);
       log_amx("Admin %s: Task amx_spec %s",name, name2);
   client_print(0, print_chat, "[CS:GO]Adminul %s l-a mutat pe %s la Spectatori !", name, name2);

   return PLUGIN_HANDLED;
}


0 0
  
Back to top
View user's profile Send private message
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 01-04-2019, 12:20:47 | Translate post to: ... (Click for more languages)

Incearca asa.

Spoiler:

0 0
  
Back to top
View user's profile Send private message
BlueSkiLz

[Mentally Stable]



Status: Offline
(since 16-07-2019 08:32)
Joined: 18 Oct 2016
Posts: 111, Topics: 33
Location: Romania

Reputation: 34.7

Post Posted: 01-04-2019, 18:53:11 | Translate post to: ... (Click for more languages)

Revin cu EDIT
EDIT:Mersi mult bro



Last edited by BlueSkiLz on 01-04-2019, 19:40:46; edited 1 time in total
0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by InLoveCs, 01 April 2019 17:54



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  


The time now is 20-04-2024, 15:56:31
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x