Posts: 180
Threads: 14
Joined: Apr 2008
Reputation:
0
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
Posts: 379
Threads: 53
Joined: Jun 2009
Reputation:
0
what do you mean
do you mean that if someone is named
[cop]ekeleke
he only can be cop?
Posts: 180
Threads: 14
Joined: Apr 2008
Reputation:
0
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
Posts: 2,593
Threads: 34
Joined: Dec 2007
Код:
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;
}
Posts: 180
Threads: 14
Joined: Apr 2008
Reputation:
0
Sorry for the doble post but this shows to me
error 017: undefined symbol "SKIN_ID"
Posts: 379
Threads: 53
Joined: Jun 2009
Reputation:
0
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
Posts: 131
Threads: 15
Joined: May 2007
Reputation:
0
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