SA-MP Forums Archive
How to make private skins in skin class selction? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to make private skins in skin class selction? (/showthread.php?tid=137415)



How to make private skins in skin class selction? - Jay. - 28.03.2010

Hi Guy's i wanna no how u can make like private skin spawns for players and say a skin is reserved for [BADBOY] and i could spawn

and if my name wasn't badboy u couldn't spawn..


Re: How to make private skins in skin class selction? - aircombat - 28.03.2010

here is it :
Код:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if(strcmp(name, "[BADBOY]") == 0)
{
//ur code
}



Re: How to make private skins in skin class selction? - Jay. - 28.03.2010

What Line i put it under one of the AddPlayerCLass?


Re: How to make private skins in skin class selction? - aircombat - 28.03.2010

add this under onplayerrequestclass :
Код:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if(strcmp(name, "[BADBOY]") == 0)
{
AddPlayerClass(etc..);
}



Re: How to make private skins in skin class selction? - Jay. - 28.03.2010

so i just change Addplayerclass,etc to the skin script i want?


Re: How to make private skins in skin class selction? - aircombat - 28.03.2010

yes


Re: How to make private skins in skin class selction? - Jay. - 28.03.2010

Thanks man it worked


Re: How to make private skins in skin class selction? - aircombat - 28.03.2010

np anytime


Re: How to make private skins in skin class selction? - Jay. - 28.03.2010

Omg i connected to server with difren't name and it let me spawn without the name BADBOY its supose to stop people spawning with the it!!! it still lets any name spawns with it what did i do wrong
Код:
public OnPlayerRequestClass(playerid, classid)
{  new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, MAX_PLAYER_NAME);
	if(strcmp(name, "[BADBOY]") == 0)
{
	AddPlayerClass(104,2853.5090,2413.9880,10.8203,240.3056,4,1000,46,0,0,0);
}



Re: How to make private skins in skin class selction? - Jay. - 28.03.2010

Hmm is it maybe possible to make so if the player does'nt have my name he explodes when trying to spawn?