onplayerrequestclass help
#7

The 1 is the classid, which means the number of skins you have added. Go look at your AddStaticClass's and see for eg:
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
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:
pawn Код:
if(classid == 0)
{
    GameTextForPlayer(playerid,"~g~Restricted Skin",1000,5);
    RestrictedSkin[playerid] = 1;
}
EDIT: Sorry it's 5 am here. Change the 1 into 0 and 2 into 1, as coding digits start from 0.
Reply


Messages In This Thread
onplayerrequestclass help - by sherlock - 10.07.2011, 20:50
Re: onplayerrequestclass help - by sherlock - 10.07.2011, 20:58
Re: onplayerrequestclass help - by Salmon - 10.07.2011, 21:00
Re: onplayerrequestclass help - by sherlock - 10.07.2011, 21:06
Re: onplayerrequestclass help - by Adil - 10.07.2011, 21:14
Re: onplayerrequestclass help - by sherlock - 10.07.2011, 21:18
Re: onplayerrequestclass help - by Adil - 10.07.2011, 21:34
Re: onplayerrequestclass help - by sherlock - 10.07.2011, 21:36
Re: onplayerrequestclass help - by Adil - 10.07.2011, 21:50

Forum Jump:


Users browsing this thread: 1 Guest(s)