SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 13/09/2015, 09:02 PM   #1
mertcan123
Little Clucker
 
Join Date: Sep 2015
Posts: 41
Reputation: 0
Default Add the binco

how to add a 24/7, binco, gym i cant do this how to do this help me please
mertcan123 is offline   Reply With Quote
Old 13/09/2015, 09:12 PM   #2
Kaliber
High-roller
 
Kaliber's Avatar
 
Join Date: Jun 2012
Location: Localhost
Posts: 1,092
Reputation: 156
Default AW: Add the binco

You can do this, by using an big Array like this:

PHP Code:
enum e_Entrance {
    
Float:a_x//Entrance x
    
Float:a_y//Entrance y
    
Float:a_z//Entrance z
    
Float:e_x//Exit point x
    
Float:e_y//Exit point y
    
Float:e_z//Exit point z
    
e_pick,
    
e_int,
    
e_world,
    
e_text[32]
};
stock const Interiors[][e_Entrance] = {
    {
0.0,0.0,3.050.0,0.0,0.0123900"Test Interior"}
};

//Can use this with /enter or KeyCode
stock EnterInterior(playerid)
{
    for(new 
ii<sizeof(Interiors); i++) {
        if(!
IsPlayerInRangeOfPoint(playerid,2.0,Interiors[i][a_x],Interiors[i][a_y],Interiors[i][a_z])) continue;
        
SetPlayerPos(playerid,Interiors[i][e_x],Interiors[i][e_y],Interiors[i][e_z]);
        
SetPlayerInterior(playerid,Interiors[i][e_int]);
        
SetPlayerVirtualWorld(playerid,Interiors[i][e_world]);
        
GameTextForPlayer(playerid,Interiors[i][e_text],5000,5);
        return 
1;
    }
    return 
0;
}

//OnGameModeInit
for(new ii<sizeof(Interiors); i++) {
    
AddStaticPickup(Interiors[i][e_pick],23,Interiors[i][a_x],Interiors[i][a_y],Interiors[i][a_z]);
    
AddStaticPickup(Interiors[i][e_pick],23,Interiors[i][e_x],Interiors[i][e_y],Interiors[i][e_z]);

I think..you should understand the thing behind
__________________
Kaliber is offline   Reply With Quote
Old 13/09/2015, 09:31 PM   #3
mertcan123
Little Clucker
 
Join Date: Sep 2015
Posts: 41
Reputation: 0
Default Re: AW: Add the binco

Quote:
Originally Posted by Kaliber View Post
You can do this, by using an big Array like this:

PHP Code:
enum e_Entrance {
    
Float:a_x//Entrance x
    
Float:a_y//Entrance y
    
Float:a_z//Entrance z
    
Float:e_x//Exit point x
    
Float:e_y//Exit point y
    
Float:e_z//Exit point z
    
e_pick,
    
e_int,
    
e_world,
    
e_text[32]
};
stock const Interiors[][e_Entrance] = {
    {
0.0,0.0,3.050.0,0.0,0.0123900"Test Interior"}
};

//Can use this with /enter or KeyCode
stock EnterInterior(playerid)
{
    for(new 
ii<sizeof(Interiors); i++) {
        if(!
IsPlayerInRangeOfPoint(playerid,2.0,Interiors[i][a_x],Interiors[i][a_y],Interiors[i][a_z])) continue;
        
SetPlayerPos(playerid,Interiors[i][e_x],Interiors[i][e_y],Interiors[i][e_z]);
        
SetPlayerInterior(playerid,Interiors[i][e_int]);
        
SetPlayerVirtualWorld(playerid,Interiors[i][e_world]);
        
GameTextForPlayer(playerid,Interiors[i][e_text],5000,5);
        return 
1;
    }
    return 
0;
}

//OnGameModeInit
for(new ii<sizeof(Interiors); i++) {
    
AddStaticPickup(Interiors[i][e_pick],23,Interiors[i][a_x],Interiors[i][a_y],Interiors[i][a_z]);
    
AddStaticPickup(Interiors[i][e_pick],23,Interiors[i][e_x],Interiors[i][e_y],Interiors[i][e_z]);

I think..you should understand the thing behind
add description i cant understand you gived a code what the hell
mertcan123 is offline   Reply With Quote
Old 13/09/2015, 09:40 PM   #4
Kaliber
High-roller
 
Kaliber's Avatar
 
Join Date: Jun 2012
Location: Localhost
Posts: 1,092
Reputation: 156
Default AW: Re: AW: Add the binco

Quote:
Originally Posted by mertcan123 View Post
add description i cant understand you gived a code what the hell
I did..so just learn the basics first..
__________________
Kaliber is offline   Reply With Quote
Old 13/09/2015, 10:04 PM   #5
mertcan123
Little Clucker
 
Join Date: Sep 2015
Posts: 41
Reputation: 0
Default Re: AW: Re: AW: Add the binco

Quote:
Originally Posted by Kaliber View Post
I did..so just learn the basics first..
no you just gived a code i dont understand where is details
mertcan123 is offline   Reply With Quote
Old 13/09/2015, 10:05 PM   #6
saffierr
High-roller
 
saffierr's Avatar
 
Join Date: Jul 2013
Location: GetPlayerGirlHouse(targetplayer);
Posts: 1,147
Reputation: 39
Default Re: Add the binco

lol, mertcan, bak iyi dinle, önce pawno basic uren, ondansonra CMDS leri yap.

((I just translated it for him, as I noticed his english isn't that good))
Remove the reply if this is disallowed.
saffierr is offline   Reply With Quote
Old 13/09/2015, 10:11 PM   #7
mertcan123
Little Clucker
 
Join Date: Sep 2015
Posts: 41
Reputation: 0
Default Re: Add the binco

Quote:
Originally Posted by saffierr View Post
lol, mertcan, bak iyi dinle, önce pawno basic uren, ondansonra CMDS leri yap.

((I just translated it for him, as I noticed his english isn't that good))
Remove the reply if this is disallowed.
i know pawno basic
mertcan123 is offline   Reply With Quote
Old 13/09/2015, 10:25 PM   #8
Thoma
Big Clucker
 
Thoma's Avatar
 
Join Date: Dec 2014
Posts: 160
Reputation: 6
Default Re: Add the binco

http://lmgtfy.com/?q=SAMP+How+to+add...or+Checkpoints


Word of advice.... Post all your questions,errors,bugs...etc into 1 post and not 5 topics.
__________________
Community Owner of:

Thoma is offline   Reply With Quote
Old 14/09/2015, 11:01 PM   #9
KillerDVX
Banned
 
Join Date: Sep 2012
Location: /goto KillerDVX - You've been teleported to forum.sa-mp.com.
Posts: 560
Reputation: 54
Default Re : Add the binco

If you keep giving him codes without explaining he would never learn anything guys.

mertcan123, if you wan't to use a checkpoint for it, you have to use : http://wiki.sa-mp.com/wiki/Function:SetPlayerCheckpoint

If you wan't a white pickup, use : https://wiki.sa-mp.com/wiki/CreatePickup

- Read correctly the description that i gave you in these links.
KillerDVX is offline   Reply With Quote
Old 14/09/2015, 11:30 PM   #10
sanamalik400
Big Clucker
 
sanamalik400's Avatar
 
Join Date: Sep 2015
Location: Pakistan
Posts: 171
Reputation: 4
Default Re: Add the binco

PHP Code:
nice killer 
sanamalik400 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 help INeed Scripting Help 6 16/12/2012 03:34 PM
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:52 PM.


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