View Single Post
  #5  
Old 03-20-2007, 06:23 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Quote:
Originally Posted by Falcor View Post
I didn't test it, but something like this should work.

PHP Code:
//#CLIENTSIDE
function onPlayerChats()
{
    
temp.radius 3;
    
temp.phi 0;
    
    if (
player.chat.starts("/putpoly"))
    {
        
temp.tok player.chat.tokenize();
        
temp.sides temp.tok[1];
        if(
temp.sides 2) {
            
temp.dt 2*pi/temp.sides;
            
temp.vert = {player.x+temp.radius*cos(temp.phi),player.y+temp.radius*sin(temp.phi)};
            for(
temp.1temp.temp.sides; ++temp.i) {
                
temp.vert.addplayer.x+temp.radius*cos(temp.phi temp.i*temp.dt) );
                
temp.vert.addplayer.y+temp.radius*sin(temp.phi temp.i*temp.dt) );
            }
            
showpoly(20,temp.vert);
        }
    }

Yeah, thanks Falados. I worked something of that order our with Hell Raven and it worked.
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote