Randon checkpoint map
#3

PHP код:
stock GetRandomPointInCube(Float:minx,Float:miny,Float:minz,Float:maxx,Float:maxy,Float:maxz,&Float:x,&Float:y,&Float:z){
    new 
cx,cy,cz;
    
cx floatround(floatsqroot(floatpower(minx-maxx,2)))+1;
    
cy floatround(floatsqroot(floatpower(miny-maxy,2)))+1;
    
cz floatround(floatsqroot(floatpower(minz-maxz,2)))+1;
    
random(cx)+minx;
    
random(cy)+miny;
    
random(cz)+minz;
}


stock GetRandomCPPos(&Float:x,&Float:y,&Float:z){
    while(
== 0.0){
        
GetRandomPointInCube(-3000.0,-3000.0,0.0,3000.0,3000.0,1.0,x,y,z);
        
MapAndreas_FindZ_For2DCoord(x,y,z);
    }
    
+= 1.0;

Reply


Messages In This Thread
Randon checkpoint map - by AtomicSAMP - 24.04.2016, 01:44
Re: Randon checkpoint map - by colonel-top - 24.04.2016, 02:15
Re: Randon checkpoint map - by AbyssMorgan - 24.04.2016, 07:07
Re: Randon checkpoint map - by Kenxxx - 24.04.2016, 12:52

Forum Jump:


Users browsing this thread: 1 Guest(s)