Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdktools>
- #define MAXSLOTS 5
- public Plugin:myinfo =
- {
- name = "Dr. Enforcicle",
- author = "janinge",
- description = "Renames spies using the enforcer, dead ringer and spycicle combo",
- version = "0.1",
- url = "http://janinge.net/"
- };
- public OnPluginStart()
- {
- HookEvent("post_inventory_application", Event_PostInventoryApplication);
- }
- public Action:Event_PostInventoryApplication(Handle:event, const String:name[], bool:dontBroadcast)
- {
- new client = GetClientOfUserId(GetEventInt(event, "userid"));
- new weps[MAXSLOTS];
- decl ent;
- for (new i = 0; i < MAXSLOTS; i++)
- if ((ent = GetPlayerWeaponSlot(client, i)) != -1)
- weps[i] = GetEntProp(ent, Prop_Send, "m_iItemDefinitionIndex");
- if (weps[0] == 460 && weps[2] == 649 && weps[4] == 59)
- SetClientInfo(client, "name", "Dr. Enforcicle");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement