Vicker Posted February 2, 2010 Share Posted February 2, 2010 Hello! I have race server. I want when my player and other players spawn to have skin that I want. How can I set spawn skin to skin that I want? Link to comment
50p Posted February 2, 2010 Share Posted February 2, 2010 There are 2 easy ways to do it; in meta.xml or via admin panel. 1. In meta.xml of race find name="*skins". Change value (by default cj) to your skin ID. OR 2. Open admin panel (P key by defaul), select "Resources" tab and double click "race" resource. Find "skins" in the list of settings and change it. Link to comment
Vicker Posted February 2, 2010 Author Share Posted February 2, 2010 Ok, thanks. And I have another question. How can I make that only admins can have certain skin when they spawn? Link to comment
50p Posted February 3, 2010 Share Posted February 3, 2010 Ok, thanks. And I have another question. How can I make that only admins can have certain skin when they spawn? That requires scripting knowledge. It's not simple 2-3 lines of code so I'll not code it for you but I'll tell you where to go to learn to script https://wiki.multitheftauto.com/wiki/Main_Page https://forum.multitheftauto.com/viewtop ... 91&t=25032 Link to comment
Aibo Posted February 4, 2010 Share Posted February 4, 2010 as a quick solution: open meta.xml of race resource and add this setting: <setting name="*adminskin" value="197" friendlyname="Admin skin" group="_Advanced" accept="0-288" desc="Setting of skin to be used by admins." /> then open race_server.lua and change this (somewhere around line 438, mine is edited): if g_MapOptions.skins == 'cj' then spawnPlayer(player, x + 4, y, z, 0, 0) to this: if isPlayerInACLGroup(player, g_GameOptions.admingroup) then spawnPlayer(player, x + 4, y, z, 0, get("adminskin")) elseif g_MapOptions.skins == 'cj' then spawnPlayer(player, x + 4, y, z, 0, 0) now in race resource settings you can set skin ID to use for players whose groups listed in race "admin group" setting. just dont forget that not all 0-288 skins are working (since its a quick solution, i havent added any checks there ) https://wiki.multitheftauto.com/wiki/Character_Skins Link to comment
Vicker Posted February 4, 2010 Author Share Posted February 4, 2010 It works, thanks. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now