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)