SA-MP Forums Archive
Question about nicknames - 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: Question about nicknames (/showthread.php?tid=87018)



Question about nicknames - caribe88 - 17.07.2009

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


Re: Question about nicknames - Pawno_Master - 17.07.2009

what do you mean

do you mean that if someone is named

[cop]ekeleke

he only can be cop?



Re: Question about nicknames - caribe88 - 17.07.2009

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


Re: Question about nicknames - Jefff - 17.07.2009

Код:
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;
}



Re: Question about nicknames - caribe88 - 18.07.2009

Thanks a lot men


Re: Question about nicknames - caribe88 - 18.07.2009

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


Re: Question about nicknames - Pawno_Master - 18.07.2009

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




Re: Question about nicknames - caribe88 - 18.07.2009

Thank you very much


Re: Question about nicknames - Jamould - 19.07.2009

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