Advertisement
janinge

drenforcicle.sp

Feb 29th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.97 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <sdktools>
  3.  
  4. #define MAXSLOTS 5
  5.  
  6. public Plugin:myinfo =
  7. {
  8.         name = "Dr. Enforcicle",
  9.         author = "janinge",
  10.         description = "Renames spies using the enforcer, dead ringer and spycicle combo",
  11.         version = "0.1",
  12.         url = "http://janinge.net/"
  13. };
  14.  
  15. public OnPluginStart()
  16. {
  17.         HookEvent("post_inventory_application", Event_PostInventoryApplication);
  18. }
  19.  
  20. public Action:Event_PostInventoryApplication(Handle:event, const String:name[], bool:dontBroadcast)
  21. {
  22.         new client = GetClientOfUserId(GetEventInt(event, "userid"));
  23.         new weps[MAXSLOTS];
  24.  
  25.         decl ent;
  26.         for (new i = 0; i < MAXSLOTS; i++)
  27.                 if ((ent = GetPlayerWeaponSlot(client, i)) != -1)
  28.                         weps[i] = GetEntProp(ent, Prop_Send, "m_iItemDefinitionIndex");
  29.  
  30.         if (weps[0] == 460 && weps[2] == 649 && weps[4] == 59)
  31.                 SetClientInfo(client, "name", "Dr. Enforcicle");
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement