A head changer?

Hello,
im asking if anyone knows or can design a head changer,
like the one on marlboro in the osl,
were it shows the heads on the server and then you can press s to select that head?

if(playerenters) {hideimg 500;} if(playertouchsme){ [B] if(!keydown(5)) { this.on = 1;[/B] while(!keydown(6) [B]&& this.on == 1[/B]) { //S to Select, A to Cancel freezeplayer 0.5; if(keydown(1)) this.head = (this.head - 1) % 1000; if(keydown(3)) this.head = (this.head + 1) % 1000; if(keydown(5)) [B]{[/B]setplayerprop #3,head#v(this.head).png; [B]this.on = 0;}[/B] //S, Set head showimg 500,head#v(this.head).png,playerx+.5,playery-2; changeimgpart 500,0,64,32,32; [B]sleep 0.05;[/B] } [B]}[/B] hideimg 500; }

It seems all that is doing in freezing my player not actually letting me change my head?

Oh, forgot to put in the sleep. Edited the first post.

it also seems to not show the s to select message and it will not let you actually pick the head, only see it.

I’ve gotta go for a couple hours, but i will be on later tonight,
If you could can you fix the part were it doesn’t let me pick the head, only see the image,
it seems to cancel out on both buttons

Looks like it only accepts numbered heads, if that might be the problem.

I see the issue, retardedly simple mistake, haha.
Editing top post yet again, I must be tired.

It’s because of the Ruzas, man.

Now will this work for only head with a number like head104.png or will it also work will all uploaded heads?

I do believe only with head###, so if you want to work with all heads, probably have to edit every single file to be in the head### format O.o (that would be a shitload of work specially for me since I have 20k+ head files :slight_smile: )

O_O

SOME of those must be repeats.

[QUOTE=Beholder;31747]

if(playerenters) {hideimg 500;} if(playertouchsme){ [B] if(!keydown(5)) { this.on = 1;[/B] while(!keydown(6) [B]&& this.on == 1[/B]) { //S to Select, A to Cancel freezeplayer 0.5; if(keydown(1)) this.head = (this.head - 1) % 1000; if(keydown(3)) this.head = (this.head + 1) % 1000; if(keydown(5)) [B]{[/B]setplayerprop #3,head#v(this.head).png; [B]this.on = 0;}[/B] //S, Set head showimg 500,head#v(this.head).png,playerx+.5,playery-2; changeimgpart 500,0,64,32,32; [B]sleep 0.05;[/B] } [B]}[/B] hideimg 500; }
[/QUOTE]

Perfect. Exactly what i was looking for! Thanks beholder, now i tried making a body changer one of those too! i edited all the this.heads to bodies and stuff, like this.

if(playerenters) {hideimg 500;}
if(playertouchsme){
if(!keydown(5)) {
this.on = 1;
while(!keydown(6) && this.on == 1) { //S to Select, A to Cancel
freezeplayer 0.5;
if(keydown(1)) this.body = (this.body - 1) % 1000;
if(keydown(3)) this.body = (this.body + 1) % 1000;
if(keydown(5)) {setplayerprop #3,body#v(this.body).png; this.on = 1;} //S, Set body
showimg 500,body#v(this.body).png,playerx+.5,playery-2;
changeimgpart 500,0,64,32,32;
sleep 0.05;
}
}
hideimg 500;
}

Now, when you select a body it goes as your head and is turned backwards.:frowning:
i believe it has something to do with the changeimgpart D:
help please?

sooper dooper