[FilterScript] air freight | By OTACON[
#1

[FS] air freight | By OTACON
[] Information:

[ame]www.youtube.com/watch?v=QXe1Dzt1vmM[/ame]

[] Downloads:

pastebin:


mega:


[] Credits:
OTACON
Reply
#2

Any picture or what?
Reply
#3

[ame]www.youtube.com/watch?v=QXe1Dzt1vmM[/ame]
Reply
#4

Awesom!
Reply
#5

Nice, i like it. You took this idea from Just Cause 3?
Reply
#6

Lol, sweet...
Reply
#7

Nice Video +1
Reply
#8

but i dont understand ur language

PHP Code:
/*
    * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
    *
    * Estи Simple FILTERSCRIPT esta hecho especialmente para www.forum.sa-mp.com
    * NO Publicar estи FILTERSCRIPT en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
    *
    * Codigo Creado Por OTACON
    *
    * CREDITOS:
    *     OTACON: Realizacion y Idea de creacion del code.
    *     TЩ: Modificacion libremente respetando lo mencionado ;).
    *
    *    NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
    *
    *                Prohibido TOTALMENTE el Robo de Crйditos o la
    *                  Publicaciуn de este FILTERSCRIPT sin Mi Permiso.
*/
/*
    * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
    *
    * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
    * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
    *
    * Code Created By OTACON
    *
    * CREDITS:
    *     OTACON: Idea Making and code creation.
    *     YOUR: Modification freely respecting the above ;).
    *
    *    NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
    *
    *                        FULLY spaces Theft Credit or
    *                 Publication of this FILTERSCRIPT without my permission.
*/

/*


*/

#include <a_samp>
#include <zcmd>

#define AIR_AUDIO "http://eccb.vd.aclst.com/dl.php/WMApCMp6IBY/Sonido+de+Avi%C3%83%C2%B3n.mp3?video_id=WMApCMp6IBY&t=V01BcENNcDZJQlktMzAzODI1NjI5MC0xNDUwNjIzNTAzLTk0Nzg4Ng%3D%3D&exp=23-12-2015&"
#define AIR_DISTANCE 100.0
#define AIR_MONEY (1000)
enum air{
    
timer,
    
Float:pos[4],
    
container[3],
    
bool:active,
    
ttimer,
};
new 
AirFreight[MAX_PLAYERS][air];

COMMAND:container(playeridparams[]){
    new 
data[200],Float:x,Float:y,Float:z,Float:a,Float:dist=AIR_DISTANCE;
    
format(data,sizeof(data),"INFO: usted debe esperar %d segundos para realizar un encargo!.",AirFreight[playerid][timer]-gettime());
    
//if(AirFreight[playerid][timer]>gettime()) return SendClientMessage(playerid,-1,data);
    
if(!AirFreight[playerid][active]){
        
//if(GetPlayerMoney(playerid)<AIR_MONEY) return SendClientMessage(playerid,-1,"INFO: usted no tiene suficiente dinero para solicitar un encargo!.");
        
GetPlayerPos(playerid,x,y,z);
        
GetPlayerFacingAngle(playerid,a);
        
AirFreight[playerid][pos][0]=x;
        
AirFreight[playerid][pos][1]=y;
        
AirFreight[playerid][pos][2]=z;
        
AirFreight[playerid][pos][3]=a;
        
AirFreight[playerid][active]=true;
        
DestroyObject(AirFreight[playerid][container][0]);
        
AirFreight[playerid][container][0]=CreateObject(18728,x,y,z-2,0,0,0);
        
SendClientMessage(playerid,-1,"INFO: coordenadas enviadas, exitosamente!.");
        
GameTextForPlayer(playerid,"~w~coordenadas~n~~g~enviadas!",3000,3);
    }else{
        
AirFreight[playerid][timer]=gettime()+60;
        
StopAudioStreamForPlayer(playerid);
        
x=AirFreight[playerid][pos][0];
        
y=AirFreight[playerid][pos][1];
        
z=AirFreight[playerid][pos][2];
        
a=AirFreight[playerid][pos][3];
        
DestroyObject(AirFreight[playerid][container][1]);
        
AirFreight[playerid][container][1]=CreateObject(2935,x,y,z+100,0,0,a-90);
        
SendClientMessage(playerid,-1,"INFO: el encargo ha sido enviado a su posicion, envio en proceso!.");
        
GameTextForPlayer(playerid,"~w~envio en~n~~y~proceso...",3000,3);
        
DestroyObject(AirFreight[playerid][container][0]);
        switch(
random(10)){
            case 
0..6:{
                
PlayAudioStreamForPlayer(playerid,AIR_AUDIO,x,y,z,dist,1);
                
MoveObject(AirFreight[playerid][container][1],x,y,z+0.5,12);
                
SendClientMessage(playerid,-1,"INFO: el encargo ha sido enviado a su posicion, envio exitoso!.");
            }
            case 
7..9:{
                
GameTextForPlayer(playerid,"~r~envio~n~~r~fallido!",3000,3);
                
SendClientMessage(playerid,-1,"INFO: el avion que transportaba su encargo ha sufrido un accidente, envio fallido!.");
                
// lean
                
StopAudioStreamForPlayer(playerid);
                
DestroyObject(AirFreight[playerid][container][0]);
                
DestroyObject(AirFreight[playerid][container][1]);
                
DestroyObject(AirFreight[playerid][container][2]);
                
AirFreight[playerid][pos][0]=0.0;
                
AirFreight[playerid][pos][1]=0.0;
                
AirFreight[playerid][pos][2]=0.0;
                
AirFreight[playerid][pos][3]=0.0;
                
AirFreight[playerid][active]=false;
                
KillTimer(AirFreight[playerid][ttimer]);
            }
        }
    }
    return 
true;
}

forward asd(playerid);
public 
asd(playerid){
    new 
Float:x,Float:y,Float:z,Float:a;
    
x=AirFreight[playerid][pos][0];
    
y=AirFreight[playerid][pos][1];
    
z=AirFreight[playerid][pos][2];
    
a=AirFreight[playerid][pos][3];
    
DestroyObject(AirFreight[playerid][container][1]);
    
CreateVehicle(car_random(),x,y,z,a,random(200),random(200),-1);
    
// lean
    
StopAudioStreamForPlayer(playerid);
    
DestroyObject(AirFreight[playerid][container][0]);
    
DestroyObject(AirFreight[playerid][container][1]);
    
DestroyObject(AirFreight[playerid][container][2]);
    
AirFreight[playerid][pos][0]=0.0;
    
AirFreight[playerid][pos][1]=0.0;
    
AirFreight[playerid][pos][2]=0.0;
    
AirFreight[playerid][pos][3]=0.0;
    
AirFreight[playerid][active]=false;
    
KillTimer(AirFreight[playerid][ttimer]);
}

public 
OnObjectMoved(objectid){
    for(new 
playerid=0p=GetPlayerPoolSize(); playerid<=pplayerid++){
        if(!
IsPlayerConnected(playerid))continue;
        if(
objectid == AirFreight[playerid][container][1]){//weapon
            
new Float:x,Float:y,Float:z,Float:dist=AIR_DISTANCE;
            
x=AirFreight[playerid][pos][0];
            
y=AirFreight[playerid][pos][1];
            
z=AirFreight[playerid][pos][2];
            
GameTextForPlayer(playerid,"~w~envio~n~~g~recibido!",3000,3);
            
KillTimer(AirFreight[playerid][ttimer]);
            
AirFreight[playerid][ttimer]=SetTimerEx("asd",5000,false,"i",playerid);
            
AirFreight[playerid][container][2]=CreateObject(18671,x,y,z-2,0,0,0);
            
CreateExplosion(x,y,z,8,dist);
        }
    }
    return 
true;
}

stock car_random(){
    new 
car;
    new 
rand=random(612);
    switch(
rand){
        case 
400..611:car=rand;
        default:
car=400;
    }
    return 
car;

Reply
#9

Looking really good! Congrats, mate!
_______________________________
Marius
Cargolution air freight rates
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)