Jump to content
  • 0

Problema skin


BorneoJr

Question

3 answers to this question

Recommended Posts

Eu am facut aici ceva dar daca aleg skinul de la F4 a 2-a atunci imi da spawn chiar daca nu am rank-ul respectiv, daca selectez primul skin imi zice mesajul acela si nu ma spawn-eaza,

public OnPlayerRequestSpawn(playerid)
{
	new classid = GetPlayerSkin(playerid);
	switch (classid)
	{
		case 0:
		{
			if(PlayerInfo[playerid][pRank] < 2)
			{
			    GameTextForPlayer(playerid, "iti trebuie rank 3+", 2000, 5);
				return 0;
			}
			return 0;
		}
		case 1:
		{
			if(PlayerInfo[playerid][pRank] < 3)
		  	{
		  	    GameTextForPlayer(playerid, "iti trebuie rank 4+", 2000, 5);
				return 0;
			}
			return 0;
		}
	}
	return 1;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.