funtion question
#4

An example not sure what you exactly wanted
PHP код:
TeleportPlayerAroundObject(objectidFloatradius) {
    new
        
FloatX,
        
FloatY,
        
FloatZ
    
;
    if(
GetObjectPos(objectidXYZ)) {
        new
            
i,
            
count,
            
players[MAX_PLAYERS]
        ;
        for(
GetPlayerPoolSize(); >= 0; --i) {
            if(
IsPlayerConnected(i)) {
                
players[count++] = i;
            }
        }
        new
            
Floatstep 360.0 count
        
;
        for(
0count; (Floati) += step) {
            
SetPlayerPos(players[--count],
                
floatcos(Floatidegrees) * radius,
                
floatsin(Floatidegrees) * radius,
                
Z
            
);
        }
    }

Reply


Messages In This Thread
funtion question - by zeth98 - 20.08.2015, 11:53
Re: funtion question - by Mariciuc223 - 20.08.2015, 12:41
Re: funtion question - by zeth98 - 20.08.2015, 12:55
AW: funtion question - by Nero_3D - 20.08.2015, 13:36
Re: funtion question - by zeth98 - 20.08.2015, 15:22
AW: funtion question - by Nero_3D - 20.08.2015, 18:35
Re: funtion question - by zeth98 - 20.08.2015, 19:13
Re: funtion question - by zeth98 - 20.08.2015, 22:38
AW: Re: funtion question - by Nero_3D - 21.08.2015, 02:13
Re: funtion question - by zeth98 - 21.08.2015, 05:54

Forum Jump:


Users browsing this thread: 2 Guest(s)