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.

Messages - AroliS^
1
Quote from UncleRus on April 22nd, 08:45 AM
I personally need not a local hosting but a global one
i can give you vps, send me a message on Discord LBRr.AroliS^.
2
Code: [Select]
packs <- array(100,null);
else if (cmd =="pack1")
{
    if ( packs[ player.ID ] != 1 )
    {
        MessagePlayer("[#ff0047]You took [#ffffff]PACK 1!",player);
        packs[ player.ID ] = 1
    }
    else MessagePlayer( "fffffff, You already have this pack.",player);
}

///onplayerspawn
   
switch(packs[ player.ID ])
{
    case 1:
    {
        player.Disarm();
        player.SetWeapon(21,10000);
        player.SetWeapon(26,10000);
        player.SetWeapon(24,10000);
        player.SetWeapon(17,10000);
    }
    break;
}
3
Client Scripting / Re: Animated GUISprites
« on March 31st, 04:41 PM »
Awesome!
4
Script Showroom / Re: Announcer System
« on March 24th, 07:48 AM »
Quote from =RK=MarineForce on March 24th, 07:46 AM
function StartTimer()
    {
        AnnouncerTimer = _Timer.Create(this, Announcer.Say, AnnouncerInterval, 0);
        Announcer_Status = true;
    }


show error in this          AnnouncerTimer = _Timer.Create(this, Announcer.Say, AnnouncerInterval, 0); that _Timer is not exists.
Requeriments: S.L.C Extended Timers ( http://forum.vc-mp.org/?topic=1487.0 ).
5
Snippet Showroom / Re: Battle Arena!
« on February 28th, 02:38 PM »
Have you thought about onPlayerSpawn?

Code: [Select]

battle <- array(100,false);

function battletimer(playerid) {
    local player = FindPlayer(playerid);
    if (!player) return;
    battle[ playerid ] = true;
    player.Pos = Vector(-540.772, 792.789, 195.213);
    Message(">> BATTLE AREA << " + Player.Name + " has entered the battle area (/battle)")
    player.World = 50;
}


    if (cmd == "battle") {
       if ( battle == true ) MessagePlayer(">>Your already in battle.",player);
       else
       {
            MessagePlayer(">> You have to wait 3 seconds to enter in /battle area",player );
            NewTimer("battletimer", 3000, 1, player.ID)
        }
    }

onPlayerSpawn <- function(player)
{
   if ( battle[ player.ID ] == true )
   {
       player.Pos = Vector(-540.772, 792.789, 195.213);
   }
}

6
Support / Re: littlewhitey's instant kick
« on January 9th, 07:37 PM »
this could be the answer -> '

credits to SuriAttacker
Delete the
Code: [Select]
dinput8.dll
file from your game folder and try to connect again.

and perhaps this one ->

credits to BanJack
As Adtec said, this problem is caused since the vcmp client is out of date.
Code: [Select]
https://littlewhiteys.com/vcmp/5CEB5D61.zip

Click the link above. Once the files are downloaded, go to your vcmp server browser, right click on it, open file location, and then exract the downloaded files.

Also don't forget to put this
Code: [Select]
http://u04.vc-mp.org
as your update link for vcmp.
8
Support / Re: littlewhitey's instant kick
« on January 9th, 07:00 PM »
i have same problem..
9
Support / Re: FPS lag
« on January 1st, 07:12 PM »
same issue.. right here.
10
General Discussion / Re: Story mode?
« on December 31st, 2019, 11:02 PM »
You probably can do a few missions, by coding them :D.... They're not hard.
11
Scripting and Server Management / Re: Code with a secret bug
« on November 15th, 2019, 05:27 PM »
Quote from SonmezAltug on November 15th, 2019, 01:46 PM
Quote from umar4911 on November 15th, 2019, 06:17 AM
Firstly, you cannot use else if immediately after the cmd one in the manner you did.
Secondly, You're getting money because of the InPoly. The vehicle when destroyed, it respawns. As soon as it respawns, the first validation is checked as true. Next, if the PLAYER is standing in the poly, it is also marked true. Since it's a suicidal mission and player is blasted too, try this piece of code:
Code: [Select]
else if( cmd == "detonate" )
{
local veh = FindVehicle( 16 );
if( veh )
{
local Pos = player.Pos, checkpoly = InPoly( Pos.x, Pos.y, -1399, -772,  -1401, -848, -1473, -849,  -1486, -786);
if( checkpoly == true && player.Vehicle.ID == veh.ID)
{
veh.Kill();
player.Cash += 10000;
SaveAccount(player);
}
}
}
I added your script now it gives this error AN ERROR HAS OCCURED [the index 'ID' does not exist]
Oh my litte turtle, I did not get what you were trying to say but now I got it, here you go

so, if you do not want to be in the car, then you do not have to compare the player pos, you better compare the vehicle pos.

Code: [Select]
else if ( cmd == "detonate" )
{
local veh = FindVehicle( 16 );
if( ( veh ) && ( !player.Vehicle ) )
{
    local pos = veh.Pos, poly = InPoly( pos.x, pos.y, -1399, -772,  -1401, -848, -1473, -849,  -1486, -786 );
if( poly )
{
veh.Kill();
player.Cash += 10000;
SaveAccount( player );
}
else MessagePlayer( "Not available.", player );
}
else MessagePlayer( "You can't be inside a car.", player );
}

12
Scripting and Server Management / Re: Problem with DistanceFromPoint
« on November 14th, 2019, 05:39 PM »
try it, my little turtle.
Code: [Select]
if ( floor( DistanceFromPoint( player.Pos.x, player.Pos.y , 483, -272 )  ) < 2  )

13
Scripting and Server Management / Re: Code with a secret bug
« on November 14th, 2019, 05:25 PM »
You my little turtle, remember this:

Code: [Select]
local veh = FindVehicle( 16 )
// is looking for the vehicle even if the instance is not on the car
Code: [Select]
instead use local veh = player.Vehicle
// now yes, my little turtle now it is checking if the instance is on the car
14
Support / Re: Need help with MySQL
« on October 16th, 2019, 06:29 PM »
Can you show us the function that you are converting to
15
Snippet Showroom / Re: Commands with /c like in 0.3z
« on October 4th, 2019, 11:25 PM »
Quote from Sebastian on October 4th, 2019, 10:29 PM
Why ? :D
ouh shit