SA-MP Forums Archive
Add the binco - 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: Add the binco (/showthread.php?tid=588946)



Add the binco - mertcan123 - 13.09.2015

how to add a 24/7, binco, gym i cant do this how to do this help me please


AW: Add the binco - Kaliber - 13.09.2015

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


Re: AW: Add the binco - mertcan123 - 13.09.2015

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


AW: Re: AW: Add the binco - Kaliber - 13.09.2015

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..


Re: AW: Re: AW: Add the binco - mertcan123 - 13.09.2015

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


Re: Add the binco - saffierr - 13.09.2015

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.


Re: Add the binco - mertcan123 - 13.09.2015

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


Re: Add the binco - Thoma - 13.09.2015

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.


Re : Add the binco - KillerDVX - 14.09.2015

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 : https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint

If you wan't a white pickup, use : https://sampwiki.blast.hk/wiki/CreatePickup

- Read correctly the description that i gave you in these links.


Re: Add the binco - sanamalik400 - 14.09.2015

PHP Code:
nice killer