Posts: 232
Threads: 31
Joined: May 2012
Reputation:
0
Hi, i want to disable all CJ skins in my samp server, to raise the roleplay level.
Yet when people just created their account, they spawn with a CJ skin and i dont know how to change it and where it stands.
I dont want to /setskin to everyone, so yeah.
Posts: 1,113
Threads: 127
Joined: Jul 2008
Reputation:
0
Well,if you let them choose,search for AddPlayerClass.You will find the spawn coordinates in it aswell.
For the other thing. Just set a default skin when they register.
What do you mean by this:
I dont want to /setskin to everyone, so yeah.
Posts: 918
Threads: 125
Joined: Nov 2010
SetPlayerSkin(playerid, skinid); on OnPlayerSpawn
look on the wiki for skins
Posts: 2,187
Threads: 81
Joined: Aug 2011
Reputation:
0
Under OnGameModeInIt, remove the line saying AddPlayerClass(0, ... ); and if there's none, there's some serious bugs with your script.
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
You can run code under OnPlayerSpawn to determine if the player has skin ID 0 (CJ skin). If they do, give them a random skin. Generally skins 1-299 (excluding 74- it's invalid) are used.
Posts: 887
Threads: 251
Joined: Jun 2011
Reputation:
0
right after they create the account..
set their skin..
Posts: 232
Threads: 31
Joined: May 2012
Reputation:
0
@pauldinam, not funny xD
For the others:
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
I just change the 0 to a 1? like this?
AddPlayerClass(1, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
Also, dont i need to prevent people to do /clothes 0?
// ThaCrypte