Question about nicknames
#1

Hi all, I wanna know if there is a way to make that the person who has a certian nickname or initials like [PDI]hisnick can spawn a certian characters only?
I hope sombody can help me
Thanks
Reply
#2

what do you mean

do you mean that if someone is named

[cop]ekeleke

he only can be cop?
Reply
#3

Look for example a player with the name [FCD]Thomas has the player class 3. So nobody else can use player class 3 only he with his nickname i wanna make it like a nick registration for gangs
Reply
#4

Код:
public OnPlayerRequestSpawn( playerid )
{
	new nick[24]; GetPlayerName(playerid,nick,24);
	if(strcmp("[FCD]Thomas",nick,true) != 0 && GetPlayerSkin(playerid) == SKIN_ID){
		GameTextForPlayer(playerid, "~r~Only for [FCD]Thomas !! !",1000,3);
		return 0;
	}else
	return 1;
}
Reply
#5

Thanks a lot men
Reply
#6

Sorry for the doble post but this shows to me
error 017: undefined symbol "SKIN_ID"
Reply
#7

you need to change "SKIN_ID" in a cop skin id

for example "281"

so delete "SKIN_ID"

and put there "281"

than skin 281 (a cop) will work

Reply
#8

Thank you very much
Reply
#9

Im pretty sure you would need to make it so your not allowed to choose your skin unless your logged in as well otherwise anyone with the name [FCD]Thomas could come on and choose that skin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)