Posts: 189
Threads: 19
Joined: May 2013
Reputation:
0
So how would I onely let a player who is say... level 2 use a certain skin?
For example, when you want to spawn as a level 2 skin,text would say "You are not level 2!"
and you would stay in the class selection screen. But if you are a level 2, then you can spawn as that skin.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
You charge money for projects, even large ones like your signature says but you do not know how to do a simple thing? I'm just saying..
Anyway, in OnPlayerRequestSpawn callback check if a player has the skin n and if the level is not the one you want return 0 to prevent the player from being spawned.
Posts: 141
Threads: 14
Joined: Feb 2013
Something like this?:
pawn Код:
command(skin2, playerid, params[])
{
if(Player[playerid][pLevel] == 2)
{
SendClientMessage(playerid, -1, "You are now equipped with a level 2 skin!");
SetPlayerSkin(playerid, PUTSKINHERE);
}
else return SendClientMessage(playerid, -1, "You are not level 2!");
}
< I know it's a command, but hey..
Anyways, as _Zeus said, make a function on OnPlayerRequestSpawn. Not entirely sure on how to do that. Though the skin can be easily set via commands