Add the binco
#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


Messages In This Thread
Add the binco - by mertcan123 - 13.09.2015, 21:02
AW: Add the binco - by Kaliber - 13.09.2015, 21:12
Re: AW: Add the binco - by mertcan123 - 13.09.2015, 21:31
AW: Re: AW: Add the binco - by Kaliber - 13.09.2015, 21:40
Re: AW: Re: AW: Add the binco - by mertcan123 - 13.09.2015, 22:04
Re: Add the binco - by saffierr - 13.09.2015, 22:05
Re: Add the binco - by mertcan123 - 13.09.2015, 22:11
Re: Add the binco - by Thoma - 13.09.2015, 22:25
Re : Add the binco - by KillerDVX - 14.09.2015, 23:01
Re: Add the binco - by sanamalik400 - 14.09.2015, 23:30

Forum Jump:


Users browsing this thread: 1 Guest(s)