Add the binco
#1

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

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
Reply
#3

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
Reply
#4

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..
Reply
#5

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
Reply
#6

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

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
Reply
#8

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.
Reply
#9

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.
Reply
#10

PHP Code:
nice killer 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)