0 Members and 1 Guest are viewing this topic.
procedure Nova(const X,Y,speed,decentralize,power: single; ID,style: byte; n: integer);var i: integer; angle: single;begin angle := 2*pi/n; for i:=0 to n do CreateBullet(X+cos(angle*i)*decentralize, Y+sin(angle*i)*decentralize, cos(angle*i)*speed, sin(angle*i)*speed, power,style , ID );end;
you are a goddam genius Avarax!!!
function OnCommand(ID: Byte; Text: string): boolean;begin if GetPiece(Text,' ',0) = '/novakill' then begin Nova( GetPlayerStat(strtoint(GetPiece(Text,' ',1)), 'X'), //X GetPlayerStat(strtoint(GetPiece(Text,' ',1)), 'Y'), //Y -6, //Speed 50, // distance/decentralize 100, //power ID, //owner 13, //knife 40 //n ); end; //NOTE: This function will be called when an admin types a / command. Result := false; // Return true if you want to ignore the command typed.end;
function deg2rad(deg: single): single;begin result:=deg/(180/pi);end;procedure Nova(X,Y,speed,decentralize,power: single; ID,style: byte; n: integer);var i: integer;begin for i:=0 to n do  CreateBullet(X + (cos(deg2rad(360 / n * i))*decentralize),Y + (sin(deg2rad(360 / n * i))*decentralize),(cos(deg2rad(360 / n * i))*speed),(sin(deg2rad(360 / n * i))*speed),power,style,ID);end;function OnCommand(ID: Byte; Text: string): boolean;begin if GetPiece(Text,' ',0) = '/novakill' then beginNova(    GetPlayerStat(strtoint(GetPiece(Text,' ',1)), 'X'), //X    GetPlayerStat(strtoint(GetPiece(Text,' ',1)), 'Y'), //Y    -5, //Speed    40, // distance/decentralize    100, //power    ID, //owner    12, //knife    40 //n   );  Nova(    GetPlayerStat(strtoint(GetPiece(Text,' ',1)), 'X'), //X    GetPlayerStat(strtoint(GetPiece(Text,' ',1)), 'Y'), //Y    -5, //Speed    30, // distance/decentralize    100, //power    ID, //owner    4, //knife    40 //n   ); Nova(    GetPlayerStat(strtoint(GetPiece(Text,' ',1)), 'X'), //X    GetPlayerStat(strtoint(GetPiece(Text,' ',1)), 'Y'), //Y    -5, //Speed    10, // distance/decentralize    100, //power    ID, //owner    4, //knife    40 //n   );Nova(    GetPlayerStat(strtoint(GetPiece(Text,' ',1)), 'X'), //X    GetPlayerStat(strtoint(GetPiece(Text,' ',1)), 'Y'), //Y    -5, //Speed    5, // distance/decentralize    100, //power    ID, //owner    13, //knife    40 //n   ); end; //NOTE: This function will be called when an admin types a / command. Result := false; // Return true if you want to ignore the command typed.end;Quote
procedure Nova(X,Y,speed,decentralize,power: single; ID,style: byte; n: integer);var i: integer;begin for i:=0 to n do CreateBullet((GetPlayerStat(ID,'x') + (cos(deg2rad(360 / 50 * i))*50),(GetPlayerStat(ID,'y') + (sin(deg2rad(360 / 50 * i))*50),(cos(deg2rad(360 / 50 * i))*70),(sin(deg2rad(360 / 50 * i))*70),0,14,ID);end;function OnCommand(ID: Byte; Text: string): boolean;begin if Text = '/Nova' then begin Nova;end;
function OnCommand(ID: Byte; Text: string): boolean;begin if Text = '/Nova' then  begin  Nova(X,Y,speed,decentralize, power, ID, style, n); endend;