04.07.2011, 18:17
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; } }