Posts: 1,018
Threads: 320
Joined: Jul 2010
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
Posts: 362
Threads: 36
Joined: Aug 2012
Reputation:
0
can you show me the dialog of glasses ?
Posts: 1,018
Threads: 320
Joined: Jul 2010
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);
Posts: 1,018
Threads: 320
Joined: Jul 2010
Posts: 1,018
Threads: 320
Joined: Jul 2010
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);
Posts: 1,018
Threads: 320
Joined: Jul 2010
Posts: 53
Threads: 0
Joined: Apr 2014