binco help - 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: binco help (
/showthread.php?tid=399735)
binco help -
INeed - 15.12.2012
Hi,
How can I create a Binco with certain skins
please help
(sorry for my bad english)
Re: binco help -
nmader - 15.12.2012
Well, it depends what exactly you want. Typically you could simply create a dialog:
pawn Code:
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_INPUT, "Binco...", "Enter a skin ID to purchase", "Okay", "Cancel");
Then go down to the OnDialogResponse callback and use the SetPlayerSkin function.
Good luck!
~Nmader
Re: binco help -
INeed - 15.12.2012
thank you bu I want a skin selection where you can see the people
Re: binco help -
park4bmx - 15.12.2012
you can force the player to go back to a class selection
like so
pawn Code:
ForceClassSelection(playerid);
TogglePlayerSpectating(playerid, true);
TogglePlayerSpectating(playerid, false);
and on the callback
pawn Code:
public OnPlayerRequestClass(playerid,classid)
{
if(InBincao[playerid]==1)
{
AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);//add different skins for the shop.
}
}
so its not the same and you can change their position as well so they stay in the shop.
AW: binco help -
INeed - 16.12.2012
when i press the spawn button i get the old skin again
Re: AW: binco help -
maramizo - 16.12.2012
Quote:
Originally Posted by INeed
when i press the spawn button i get the old skin again
|
You'll need to change the player skin variable to the skin he chose.
AW: binco help -
INeed - 16.12.2012
and how can I do that ?