Raised This Month: $12 Target: $400
 3% 

[TF2] Pets


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
arthurdead
Senior Member
Join Date: Jul 2013
Old 01-02-2014 , 17:42   [TF2] Pets
Reply With Quote #1

original code made by noodleboy347 kinda fixed by me and fixes/improvements by abrandnewday

Public Commands:
sm_givepet <petindex> - Gives Yourself A Pet
sm_killpet - Slay Your Pet

Admin Commands Requires Cheats Flag
sm_spawnpet <client> <pet index> - Allows an admin to spawn a pet for a player.
sm_slaypet <client> - Allows an admin to slay a player's pet.

Public Commands If you Have An Pet
sm_petwait - makes your pet stop following you
sm_petfollow - makes your pet follow you

Instructions
1. Download playerpets.smx, put that into addons/sourcemod/plugins
2. Download playerpets.phrases.txt, put that into addons/sourcemod/translations
3. Load it up ingame via "rcon sm plugins load playerpets"

If you want to make your own custom pets:
1. Click "Get Source" below to download playerpets.sp
2. Download playerpets.inc as well, this is where you code in custom pets.
3. Put playerpets.inc into your "includes" folder, wherever you store your coding resources
4. Put playerpets.sp into the "scripting" folder.
5. Edit playerpets.inc and create your own custom pets.
6. Complie playerpets.sp.

Note: to not remove the first pet on the list (it counts as pet index 0)
Attached Files
File Type: sp Get Plugin or Get Source (playerpets.sp - 607 views - 18.7 KB)
File Type: inc playerpets.inc (7.1 KB, 719 views)
File Type: txt playerpets.phrases.txt (467 Bytes, 479 views)

Last edited by arthurdead; 01-21-2014 at 15:26.
arthurdead is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode