[HELP] glasses for player
#1

Hello I have for glasses offset and know I have command buyglasses then dialog appears and in there I have 19 diffrent's id of glasses and know if I choose one I store that id in player variable glasses. Know if I did it corect how can I get that glasses typing some command for exaple /glasses then I get that id of glasses which I store in variable if you know what I mean? Thanks
Reply
#2

can you show me the dialog of glasses ?
Reply
#3

pawn Код:
new glassesid;
        if(sscanf(inputtext,"i",glassesid)) return ShowPlayerDialog(playerid,168,DIALOG_STYLE_INPUT,"{00C0FF}[Optica Naocale]","{48E31C}___________________________________________________\n\n{FFFFFF}Izaberite svoje Naocale(Moguci ID od 1 do 33)\n{FFFFFF}Cijena naocala: 1000$\n{48E31C}___________________________________________________","Kupi","Izlaz");
        if(glassesid < 1 || glassesid > 33) return SCM(playerid,COLOR_GRAD2,"{F81414}[Greska!] {C3C3C3}Id naocala najmanje 1, a najvise 33!");
        PlayerInfo[playerid][Glasses] = glassesid;
        GivePlayerMoney(playerid,-1000);
Reply
#4

anyone? thanks
Reply
#5

https://sampforum.blast.hk/showthread.php?tid=196489
Reply
#6

I just have problem in command glasses I buy the glasses and then when I type glasses it should me set the glasses which I buy but it doesn't set. Thanks

here is from /glasses command


pawn Код:
new skin = GetPlayerSkin(playerid);
    SetPlayerAttachedObject(playerid,2,PlayerInfo[playerid][Glasses],2,SkinOffSet[skin][0],floatadd(SkinOffSet[skin][1],0.004500),SkinOffSet[skin][2],SkinOffSet[skin][3],SkinOffSet[skin][4],SkinOffSet[skin][5],0);
Reply
#7

anyoone, thanks
Reply
#8

use setplayerobject
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)