public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0: Locked[playerid] = 0; //this one DOESNT.
case 1: Locked[playerid] = 0; //this one too
case 2: Locked[playerid] = 1; //this is going to be locked, right?
}
return 1;
}
public OnPlayerRequestClass(playerid, classid) { switch(classid) { case 0: Locked[playerid] = 0; //this one DOESNT. case 1: Locked[playerid] = 0; //this one too case 265: Locked[playerid] = 1; //this is going to be locked, right? } return 1; }
So..if i want skin 265 locked how would it look like?
Код:
public OnPlayerRequestClass(playerid, classid) { switch(classid) { case 0: Locked[playerid] = 0; //this one DOESNT. case 1: Locked[playerid] = 0; //this one too case 265: Locked[playerid] = 1; //this is going to be locked, right? } return 1; } |
no, classid and skinid are 2 different things. The skin id is the id of the model of a skin. The class id is the number that identifies a class.
|
AddPlayerClass(221, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 0 AddPlayerClass(212, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 1 AddPlayerClass(199, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 2
AddPlayerClass(221, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 0 AddPlayerClass(212, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 1 AddPlayerClass(199, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 2 AddPlayerClass(1, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); // Class3
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0: Locked[playerid] = 0; // Class 0, skin 221
case 1: Locked[playerid] = 0; // Class 1, skin 212
case 2: Locked[playerid] = 0; // Class 2, skin 199
case 3: Locked[playerid] = 1; // Class 3, skin 1 <-- this one is locked
}
return 1;
}