10.07.2011, 21:34
The 1 is the classid, which means the number of skins you have added. Go look at your AddStaticClass's and see for eg:
So for every classid you can make something show up when the player is going through the classes. If you want to have a text pop up at a class, for eg. that restricted class, then you do this:
EDIT: Sorry it's 5 am here. Change the 1 into 0 and 2 into 1, as coding digits start from 0.
pawn Код:
AddPlayerClass(170, 2138.6418,1286.0657,7.9422, 269.1425,5, 0, 22, 100, 32, 50);//This will be classid 1
AddPlayerClass(102, 1958.3783, 1343.1572, 15.3746, 269.1425, 5, 0, 22, 100, 32, 50);//This will be classid 2
pawn Код:
if(classid == 0)
{
GameTextForPlayer(playerid,"~g~Restricted Skin",1000,5);
RestrictedSkin[playerid] = 1;
}