How to make private skins in skin class selction?
#1

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..
Reply
#2

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

What Line i put it under one of the AddPlayerCLass?
Reply
#4

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

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

yes
Reply
#7

Thanks man it worked
Reply
#8

np anytime
Reply
#9

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);
}
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)