Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Saiyan Attack

#1
Snippet Showroom / Re: Simple Ping System
May 30, 2020, 06:14 PM
Instead of soo sooo many warning u can simply put message

Message(" " + noobmaster6162 + " " + player.Name + " WARNED PING LIMIT ("+stats[user.id].warning+"/8) ");
#2
Snippet Showroom / Re: Simple Ping System
May 30, 2020, 06:11 PM
Lol
#3
Script Showroom / Re: Duel System
Oct 19, 2019, 01:37 AM
i have seen it and i have also seen your command /duel cancel - that can use only for those user who sent request of duel ... and i want to tell you about when sender cancel their duel request and then the popup window should remove automatically ....
#4
Script Showroom / Re: Duel System
Oct 18, 2019, 08:44 PM
what if sender decide to cancel their request? i think you forgot about it?!
#5
The Index 'stats' does not exist
#6
Snippet Showroom / Re: GTA V Spawn Camera
Sep 05, 2018, 09:48 PM
Quote from: ! on Sep 05, 2018, 04:52 PM
Quote from: =RK=MarineForce on Sep 05, 2018, 11:34 AM@zeus bro, i m added. this and on player spawn .

function onPlayerSpawn( player )
{
GTAVSpawn ( 84, -1167.65, -631.166, 11.8277 );
}

and dofile too .

not working bro :)
It was tested on a blank server before publish.
then re-test the code becuz it has bug in timers ...
#7
function GetForwardPoint( pos, gap, angle )
{
  local x = pos.x + 1.0 * cos(angle) - gap * sin(angle)
  local y = pos.y + 1.0 * sin(angle) + gap * cos(angle);
  return  Vector(x.tofloat(), y.tofloat(), pos.z.tofloat());
}

Usage: GetForwardPoint(veh.Pos, /* distance between you and your object*/ 25.0,player.Angle);
#8
Support / Re: 04rel06
Jun 24, 2018, 07:41 PM
it's mean you have some old feature which latest version doesn't support, first you need to remove those feature and then you can be able run your server in latest version
#9
Support / Re: 04rel06
Jun 24, 2018, 07:27 PM
which plugin version, working well in your server?
#10
@Stormeus player.WideScreen and SetCinematicBorder is still make no effect on screen ?
#11
player.WideScreen and SetCinematicBorder is bug now they won't make border ....
#12
and there is no need for id, you simply add them in your default function. because you're already receiving integer with your StreamReadInt, and simply remove all commented part and use it in case.
case 300:
::crash_player( );
break;
#13
Support / Re: custom car weps?
Jun 11, 2018, 09:07 PM
fixed now we can shoot through any vehicle ... here is the working code :-
Serverside :-
enum Identity {
Shoot = 0x01,
};

function onScriptLoad()
{
CTRL <- BindKey(true,0x11,0,0);
}

function onKeyDown(player, key)
{
switch(key) {
case CTRL:
if(player.Vehicle) sendClientData(player, "Shoot");
break;
}
}

function onClientScriptData(player)
{
local client = Stream(), stbyte = client.ReadByte();
switch(stbyte) {
case Identity.Shoot:
local hitpoint = client.ReadString();
local coords = split(hitpoint,"\n"), x = coords[0], y = coords[1], z = coords[2];
CreateExplosion(1, 7,Vector(x.tofloat(), y.tofloat(), z.tofloat()), player.ID, true);
break;
}
}

function sendClientData(player, data)
{
switch(data) {
case "Shoot":
local veh = player.Vehicle, client = Stream();
client.StartWrite();
client.WriteByte(Identity.Shoot);
local startpoint = GetForwardPoint( veh.Pos, 6.0, GetRadiansAngle(veh.Angle) ), endpoint = GetForwardPoint(veh.Pos, 100.0, GetRadiansAngle(veh.Angle));
client.WriteString(startpoint);
client.WriteString(endpoint);
client.SendStream(player);
break;
}
}

function GetRadiansAngle(Rotation)
{
 local angle;
 angle = ::asin( Rotation.z ) * -2;
 return Rotation.w < 0 ? 3.14159 - angle : 6.28319 - angle;
}

function GetForwardPoint( pos, gap, angle )
{
  local x = pos.x + 1.0 * cos(angle) - gap * sin(angle)
  local y = pos.y + 1.0 * sin(angle) + gap * cos(angle);
  return  x+"\n"+y+"\n"+pos.z;
}



and now all you need to generate rocket by CreateObject!
#14
@Xmair will you explain it little briefly i've found something relative to this but i don't think it works in vcmp ... here it is :-
click me
#15
Support / Re: custom car weps?
Jun 10, 2018, 11:13 PM
client-side :-
enum Identity {
Shoot = 0x01,
};

function Server::ServerData(stream)
{
local stbyte = stream.ReadByte();
switch(stbyte) {
case Identity.Shoot:
local start = stream.ReadString( ), end = stream.ReadString( );
local startpoint = split(start,"\n"), endpoint = split(end,"\n");
local sx = startpoint[0], sy = startpoint[1], sz = startpoint[2], ex = endpoint[0], ey = endpoint[1], ez = endpoint[2];
Shooter( Vector( sx.tofloat(), sy.tofloat(), sz.tofloat() ), Vector( ex.tofloat(), ey.tofloat(), ez.tofloat() ) );
break;
}
}

function Shooter( startpos, endpos )
{
local detector = RayTrace( startpos, endpos, (RAY_BUILDING | RAY_PED | RAY_VEHICLE | RAY_OBJECT));
if ( detector.Collided == true && detector.Entity != null ) {
local hitpoint = detector.Position;
local stream = Stream( );
stream.WriteByte( Identity.Shoot );
stream.WriteString(hitpoint.X+"\n"+hitpoint.Y+"\n"+hitpoint.Z);
Server.SendData( stream );
}
}