Check score for skin select?
#5

Code:
new skin[40][500];//for 40 different skins..
public OnPlayerRequestClass(playerid, classid)
{
  switch(classid)
		{

			case 0://this is the first skin placed on gamemodeinit, such as addplayerclass ...you count them and number the cases.. starting with 0 with the 1st one..
			{
                         if(GetPlayerScore(playerid) < 350)GameTextForPlayer(playerid, "~n~ ~n~ ~r~Not available.", 999999, 3);
                         skin[0][playerid] = 1;//this is for case 0, as you see [0] ...
                         }
                         case 1:
                         {

                          } 
                 }
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
 if(skin[0][playerid] == 1 && GetPlayerScore(playerid) < 350)
{
SendClientMessage(playerid,RED, "You must have at least 350 score before choosing this skin.");
return 0;
 }
return 1;
}
}
Well this is my way..
Reply


Messages In This Thread
Check score for skin select? - by ServerScripter - 04.07.2011, 17:52
Re: Check score for skin select? - by RyDeR` - 04.07.2011, 17:54
Re: Check score for skin select? - by Jochemd - 04.07.2011, 17:56
Re : Check score for skin select? - by ServerScripter - 04.07.2011, 18:00
Re: Check score for skin select? - by RelaxCafe - 04.07.2011, 18:17
Re : Re: Re : Check score for skin select? - by ServerScripter - 05.07.2011, 08:59
Re: Check score for skin select? - by Gazmull - 05.07.2011, 09:01
Re: Check score for skin select? - by FireCat - 05.07.2011, 09:16
Re : Check score for skin select? - by ServerScripter - 05.07.2011, 09:18

Forum Jump:


Users browsing this thread: 1 Guest(s)