Hey,
Ich habe mir vor einiger Zeit eine Skinauswahl erbastelt. Nun möchte ich für diese Auswahl einige Skins "restricten", also verbieten.
Die Skins habe ich in folgendem Array gespeichert:
155,163,164,165,166,167,171,172,173,174,175,185,186,187,189,194,203,204,205,209,220,221,222,223,233,240,247,248,253,254,255,265,266,267,268,269,270,271,272,273,274,275,276,277,278,
279,280,281,282,283,284,285,286,287,288,292,293,294,295,297,299};
Hier ist mein OnPlayerClickTextDraw-Code:
public OnPlayerClickTextDraw(playerid,Text:clickedid)
{
if(clickedid == Skinselect1) {
if(GetPlayerSkin(playerid) == 1){
SetPlayerSkin(playerid,299);
} else {
SetPlayerSkin(playerid,GetPlayerSkin(playerid)-1);
}
}
if(clickedid == Skinselect2) {
if(GetPlayerSkin(playerid) == 299){
SetPlayerSkin(playerid,1);
} else {
SetPlayerSkin(playerid,GetPlayerSkin(playerid)+1);
}
}
if(clickedid == Skinselect3) {
CancelSelectTextDraw(playerid);
SpawnPlayer(playerid);
}
return 1;
}
Wie kann ich dies nun tun?
lg
Deagle.