SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 15/12/2012, 04:43 PM   #1
INeed
Little Clucker
 
Join Date: Dec 2012
Posts: 8
Reputation: 0
Default binco help

Hi,

How can I create a Binco with certain skins

please help
(sorry for my bad english)
INeed is offline   Reply With Quote
Old 15/12/2012, 04:51 PM   #2
nmader
Gangsta
 
Join Date: Jul 2011
Posts: 639
Reputation: 52
Default Re: binco help

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
__________________
Script in Development
Server IP: Unavailable
Teamspeak: Unavailable
Website: Unavailable
nmader is offline   Reply With Quote
Old 15/12/2012, 06:50 PM   #3
INeed
Little Clucker
 
Join Date: Dec 2012
Posts: 8
Reputation: 0
Default Re: binco help

thank you bu I want a skin selection where you can see the people
INeed is offline   Reply With Quote
Old 15/12/2012, 06:57 PM   #4
park4bmx
High-roller
 
park4bmx's Avatar
 
Join Date: Dec 2009
Location: Samokov,Bulgaria
Posts: 2,364
Reputation: 240
Default Re: binco help

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.
park4bmx is offline   Reply With Quote
Old 16/12/2012, 03:15 PM   #5
INeed
Little Clucker
 
Join Date: Dec 2012
Posts: 8
Reputation: 0
Default AW: binco help

when i press the spawn button i get the old skin again
INeed is offline   Reply With Quote
Old 16/12/2012, 03:24 PM   #6
maramizo
Gangsta
 
maramizo's Avatar
 
Join Date: Feb 2011
Posts: 686
Reputation: 41
Default Re: AW: binco help

Quote:
Originally Posted by INeed View Post
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.
__________________
Quote:
Originally Posted by Horrible View Post
i am sugest you to do not use NGRP script ,it's not for stealing code. But it beacuse it has a complex code so not easily edited.

Note : create your own and undrstand the code not only copy and paste it
maramizo is offline   Reply With Quote
Old 16/12/2012, 03:34 PM   #7
INeed
Little Clucker
 
Join Date: Dec 2012
Posts: 8
Reputation: 0
Default AW: binco help

and how can I do that ?
INeed is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BINCO Ihsan_Cingisiz Help Archive 2 30/05/2010 04:54 PM
|Map| BInco [LS] mininou Filterscripts 14 19/04/2010 04:10 AM
Binco Steven82 Help Archive 12 27/03/2010 04:22 PM
[DUV]Binco Mhyfp Português/Portuguese 9 12/01/2010 02:30 PM


All times are GMT. The time now is 10:21 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.