[Mod] team skin [0.1] [team_skin]

Post Reply
juli
Member
Posts: 217
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

[Mod] team skin [0.1] [team_skin]

by juli » Post

This mod is very simple: it adds one command to set the skin of an player, but the player needs the teamskin priv to do it

It works as the following: /setskin <playername> <skinname>

For skinname u should not at the suffix (".png") because the mod does this automaticly,
if u do it yourself the skin can't be loaded.
Also there is a prefix for all "team"-skins: "team_"
so the name of an skin for this mod should be: team_TEAMNAME.png

If u don't like this behavior simply change line 28 to this:

Code: Select all

--default:			textures = {"team_"..team..".png"},
			textures = {team},
License is MIT see license.txt
Download
Source

At the moment there are 4 teams + one team for the admins
The teams are green-blue-yellow-red the admin has the jordach skin

Examples to set a skin:

Code: Select all

/setskin singleplayer 1
/setskin anotherplayer 2
/setskin thirdplayer 3
/setskin lastplayer 4
/setskin admin admin
i made this mod for the admin of the attack-server called SWAMPTURTLE

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 21 guests