[HELP] glasses for player - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] glasses for player (
/showthread.php?tid=507687)
[HELP] glasses for player -
Luca12 - 18.04.2014
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
Re : [HELP] glasses for player -
samp_boy - 18.04.2014
can you show me the dialog of glasses ?
Re: [HELP] glasses for player -
Luca12 - 18.04.2014
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);
Re: [HELP] glasses for player -
Luca12 - 19.04.2014
anyone? thanks
Re: [HELP] glasses for player - Astralis - 19.04.2014
https://sampforum.blast.hk/showthread.php?tid=196489
Re: [HELP] glasses for player -
Luca12 - 19.04.2014
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);
Re: [HELP] glasses for player -
Luca12 - 20.04.2014
anyoone, thanks
Re: [HELP] glasses for player -
Dragon2 - 20.04.2014
use setplayerobject