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 - Mahmoud Tornado

#46
Snippet Showroom / GTA Vice-City: Cheats.
Jul 11, 2018, 04:46 PM
Was walking in the forum and saw this http://forum.vc-mp.org/?topic=3883.0 so i made some cheats for the game if someone need it.
Cheats:
PANZER == Spawn a tank
TRAVELINSTYLE == Spawn a Bloodring Banger
GETTHEREQUICKLY == Spawn a fast Bloodring Banger
THELASTRIDE    == Spawn Romero's hearse
ROCKANDROLLCAR == Spawn a v-rock car
GETTHEREFAST == Spawn a Sabre Turbo
RUBBISHCAR == Spawn a garbage truck
BIGBANG == Create Explosions
CHEATSHAVEBEENCRACKED == Play as Ricardo Diaz
LOOKLIKELANCE == Play as Lance Vance
MYSONISALAWYER == Play as Ken Rosenberg
LOOKLIKEHILARY == Play as Hilary King
ROCKANDROLLMAN == Play as Love Fist character (Jezz Torent)
WELOVEOURDICK == Play as Love Fist character (Dick)
ONEARMEDBANDIT == Play as Phil Cassidy
IDONTHAVETHEMONEYSONNY == Play as Sonny Forelli
FOXYLITTLETHING == Play as Mercedes
ASPIRINE == Hp = 100
CANTTAKEITANYMORE == Character commits suicide
SEAWAYS == Drive in water allowed


Normally add this onPlayerChat( player, text )
text = text.tolower ( );
if ( text == "panzer")
    {
    CreateVehicle( 162, player.World, player.Pos.x +2, player.Pos.y +2, player.Pos.z +2, 0, 0, 0 );
    }
if ( text == "travelinstyle")
    {
    CreateVehicle( 234, player.World, player.Pos, 0, 3, 1 );
    }
if ( text == "gettherequickly")
    {
    CreateVehicle( 235, player.World, player.Pos, 0, 2, 0 );
    }
if ( text == "thelastride")
    {
    CreateVehicle( 172, player.World, player.Pos, 0, 0, 0 );
    }
if ( text == "rockandrollcar")
    {
    CreateVehicle( 139, player.World, player.Pos, 0, 0, 0 );
    }
if ( text == "gettherefust")
    {
    CreateVehicle( 206, player.World, player.Pos, 0, 0, 0 );
    }
if ( text == "rubbishcar")
    {
    CreateVehicle( 138, player.World, player.Pos, 0, 0, 0 );
    }
if ( text == "bigbang")
    {
    for(local i =0 ; i < 1000; i++) if(FindVehicle(i) != null) FindVehicle(i).Kill();
    }
if ( text == "cheatshavebeencracked")
    {
    player.Skin = 105;
    }
if ( text == "looklikelance")
    {
    player.Skin = 114;
    }
if ( text == "mysonisalawyer")
    {
    player.Skin = 107;
    }
if ( text == "looklikehilary")
    {
    player.Skin = 109;
    }
if ( text == "rockandrollman")
    {
    player.Skin = 110;
    }
if ( text == "weloveourdick")
    {
    player.Skin = 116;
    }
if ( text == "onearmedbandit")
    {
    player.Skin = 127;
    }
if ( text == "idonthavemoneysonny")
    {
    player.Skin = 113;
    }
if ( text == "foxylittlething")
    {
    player.Skin = 115;
    }
if ( text == "aspirine")
    {
    player.Health = 100;
    }
if ( text == "preciousprotection")
    {
    player.Armour = 100;
    }
if ( text == "canttakeitanymore")
    {
    player.Health = 0;
    }
if ( text == "seaways")
    {
    SetDriveOnWater( true );
    }
I hope to be at least helped one.
Mahmoud. <3
#47
Quote from: Xmair on Jul 10, 2018, 07:41 AMStats[ player.ID ] = PlayerClass(); //Making an loop with PlayerClass and Stats.That's not a loop.
Just word to explain.
#48
Hello, dear VC-MP community.
Still friends requests for making system and now a lot of newbie scripters asked me for spawnloc but they don't wanna the same system,
So i made all of them here.

2 Ways
First way is with PlayerClass mean that when you leave the server it will delete the vectors.
Second way is with database it will save the vectors for every time when player getting in the server.

2 Commands
First cmd is with /setspawnloc that mean you must use it first to save your spawnloc location.
Seconed cmd is only /spawnloc <on, off> the vectors is saving when you type on.


First way - Stats

PlayerClass
Spawnloc = false; // Using to make the spawnloc settings.
VectorX = 0; // spawnloc Vector X.
VectorY = 0; // spawnloc Vector Y.
VectorZ = 0; // spawnloc Vector Z.

onScriptLoad()
Stats <- array(GetMaxPlayers(), null); // Loading stats..

onPlayerJoin( player )
Stats[ player.ID ] = PlayerClass();

onPlayerSpawn( player )
if ( Stats[ player.ID ].Spawnloc ) player.Pos = Vector( Stats[ player.ID ].VectorX, Stats[ player.ID ].VectorY, Stats[ player.ID ].VectorZ ); //Making player spawn in his saved location if his spawnloc is on.

Commands
First Commands - With Setspawnloc
if ( cmd == "setspawnloc" )
{
 Stats[ player.ID ].VectorX = player.Pos.x.tofloat(); //Saving Vector X of player to his stats
 Stats[ player.ID ].VectorY = player.Pos.y.tofloat(); //Saving Vector Y of player to his stats
 Stats[ player.ID ].VectorZ = player.Pos.z.tofloat(); //Saving Vector Z of player to his stats
 MessagePlayer( "[#ffbb00]now use /spawnloc to make it on or off", player );
Announce( "~t~You has set your spawnloc here", player , 0 );
}

else if ( cmd == "spawnloc" )
{
 if ( !text ) MessagePlayer( "[#ffbb00]/" + cmd + " <on/off>", player );
 else {
 if ( text == "on" )
{
 Stats[ player.ID ].Spawnloc = true; //Making the spawnloc ready to use
Announce( "~t~Spawnloc Enabled", player , 0 );
 }
 else if ( text == "off" )
{
 Stats[ player.ID ].Spawnloc = false; //Changing the spawnloc to false
Announce( "~y~Spawnloc Disabled", player , 0 );
 }
 }
 }

Second Command - Setting when truring on
if ( cmd == "spawnloc" )
{
 if ( !text ) MessagePlayer( "[#ffbb00]/" + cmd + " <on/off>", player );
 else {
 if ( text == "on" )
{
 Stats[ player.ID ].VectorX = player.Pos.x.tofloat(); //Saving Vector X of player to his stats
 Stats[ player.ID ].VectorY = player.Pos.y.tofloat(); //Saving Vector Y of player to his stats
 Stats[ player.ID ].VectorZ = player.Pos.z.tofloat(); //Saving Vector Z of player to his stats
 Stats[ player.ID ].Spawnloc = true;  //Making the spawnloc ready to use
 MessagePlayer( "[#ffbb00]You has set your spawnloc here.", player );
Announce( "~t~Spawnloc Enabled", player , 0 );
 }
 else if ( text == "off" )
{
 Stats[ player.ID ].Spawnloc = false;  //Changing the spawnloc to false
Announce( "~y~Spawnloc Disabled", player , 0 );
 }
 }
 }



Second way - Database
onScriptLoad()
Spawnloc <- ConnectSQL( "SpawnLocations.db" ); //Making new database
QuerySQL( Spawnloc, "CREATE TABLE IF NOT EXISTS Accounts ( Name VARCHAR(32), VectorX VARCHAR(25), VectorY VARCHAR(25), VectorZ VARCHAR(25), Spawnloc TEXT )" ); //Creating tables

onPlayerSpawn(player)
local q = QuerySQL(Spawnloc, "SELECT * FROM Accounts WHERE Name = '" + player.Name + "'"); //Checking player name
if( q && GetSQLColumnData(q, 4) == "on" ) // if player has spawnloc on
{
local ppy = GetSQLColumnData(q, 2).tointeger(), //Making local for player Y which saved before in db
ppx = GetSQLColumnData(q, 1).tointeger(),  //Making local for player X which saved before in db
ppz = GetSQLColumnData(q, 3).tointeger();  //Making local for player Z which saved before in db
player.Pos = Vector( ppx, ppy, ppz); //Setting player place in spawnloc <saved> place.
}

Commands
First Commands - With Setspawnloc
if(cmd == "setspawnloc")
{
local q = QuerySQL(Spawnloc, "SELECT * FROM Accounts WHERE Name = '" + player.Name + "'"); //Getting player name from db
if(!q) QuerySQL(Spawnloc, "INSERT INTO Accounts ( Name, VectorX, VectorY, VectorZ, Spawnloc ) VALUES ( '" + player.Name + "', '0' , '0' , '0','null' ) "); // if player not in db make an place for him
else{
QuerySQL(Spawnloc, "UPDATE Accounts SET VectorX = '" + player.Pos.x + "' WHERE Name = '" + player.Name + "'"); //Saving X
QuerySQL(Spawnloc, "UPDATE Accounts SET VectorY = '" + player.Pos.y + "' WHERE Name = '" + player.Name + "'"); //Saving Y
QuerySQL(Spawnloc, "UPDATE Accounts SET VectorZ = '" + player.Pos.z + "' WHERE Name = '" + player.Name + "'"); //Saving Z
MessagePlayer( "[#ffbb00]You has set your spawnloc here.", player );
Announce( "~t~Spawnloc Enabled", player , 0 );
}
}
 
else if(cmd == "spawnloc")
{
if(!text) MessagePlayer("[#ff0000]/" + cmd + " <on/off>", player);
local q = QuerySQL(Spawnloc, "SELECT * FROM Accounts WHERE Name = '" + player.Name + "'"); //Getting player from db
if(!q) MessagePlayer("[#ffbb00]you didn't set your spawnloc yet, use /setspawnloc.", player); // if player didn't set his location
else
{
if(text == "on")
{
QuerySQL(Spawnloc, "UPDATE Accounts SET Spawnloc = 'on' WHERE Name = '" + player.Name + "'"); //Setting the spawnloc on
Announce( "~t~Spawnloc Enabled", player , 0 );
}
if(text == "off")
{
QuerySQL(Spawnloc, "UPDATE Accounts SET Spawnloc = 'off' WHERE Name = '" + player.Name + "'"); //Setting the spawnloc off
Announce( "~y~Spawnloc Disabled", player , 0 );
}
}
}

Second Command - All in /spawnloc
else if(cmd == "spawnloc")
{
if(!text) MessagePlayer("[#ff0000]/" + cmd + " <on/off>", player);
local q = QuerySQL(Spawnloc, "SELECT * FROM Accounts WHERE Name = '" + player.Name + "'"); //Getting player name from db
if(!q) QuerySQL(Spawnloc, "INSERT INTO Accounts ( Name, VectorX, VectorY, VectorZ, Spawnloc ) VALUES ( '" + player.Name + "', '0' , '0' , '0','null' ) "); // if player not in db make an place for him
else
{
if(text == "on")
{
QuerySQL(Spawnloc, "UPDATE Accounts SET Spawnloc = 'on' WHERE Name = '" + player.Name + "'"); //Spawnloc on
QuerySQL(Spawnloc, "UPDATE Accounts SET VectorX = '" + player.Pos.x + "' WHERE Name = '" + player.Name + "'"); //Saving X
QuerySQL(Spawnloc, "UPDATE Accounts SET VectorY = '" + player.Pos.y + "' WHERE Name = '" + player.Name + "'"); //Saving Y
QuerySQL(Spawnloc, "UPDATE Accounts SET VectorZ = '" + player.Pos.z + "' WHERE Name = '" + player.Name + "'"); //Saving Z
Announce( "~t~Spawnloc Enabled", player , 0 );
}
if(text == "off")
{
QuerySQL(Spawnloc, "UPDATE Accounts SET Spawnloc = 'off' WHERE Name = '" + player.Name + "'"); //Changing the Spawnloc to off
Announce( "~y~Spawnloc Disabled", player , 0 );
}
}
}

Hope it make my friends happy, Hope it make anyone happy, Hope it make you happy.
Have a nice day, love you all, yours...
Mahmoud Ashraf
#49
Quote from: KrooB on Jun 19, 2018, 02:18 AMfunction onPlayerPart( player, reason )
{
    switch (reason)
    {
        case 1:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#ffffff]quit.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Quito El Juego.");
            break;
        }
        case 1:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#ffffff]Disconnected");
         EchoMessage( ICOL_GREEN  + "[PART] "+player.Name+" Desconecto El juego");
            break;
        }
        case 0:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+ " [#ffffff]timeout.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+ " Internet Fuera.");
            break;
        }
        case 2:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+ " [#ffffff]Kicked for banned.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+ " Kickeado Por Prohibicion.");
            break;
        }
        case 2:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#FFFFFF]Kicked.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Kickeado.");
            break;
        }
      case 2:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#FFFFFF]banned.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Prohibido.");
            break;
        }
      case 3:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#FFFFFF]Error Crash.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Error del VC.");
            break;
        }
    }
}

I CANT FIND CONNECT CASE ID ?
You will never find connect onPlayerPart, on player part means on player leaves the server, you can't deal with it on connect.
When player connect like what kurumi said.
Quote from: KuRiMi on Jun 19, 2018, 03:13 AMonPlayerJoin function calls whenever a player connects to the server.
Easily add msg onPlayerJoin, wanna know connect ID use this,
"+player.ID+"
Use it in your msg change it to whatever you want, like this.
"+player.IP+"     "+player.FPS+"    "+player.Ping+"
Finally make add it in msg like this.
            Message("[#FF77AF][JOIN] [#ac8000]"+player.Name+ " [#ffffff]Has joined the server, ID: "+player.ID+".");
#50
Snippet Showroom / [Minigame] Maze Runners.
Jun 05, 2018, 02:29 AM
Hello, dear VC-MP community.
I was talking to some friends and they asked me to make an maze minigame, they said that they played one before.
So i was thinking and finally, i made it and now i would love to share it.
Idea: had been taken from anime's world server.

First:  PlayerClass, for making or checking if player is maze player.
mazerunner = false;

Second:  Scriptload, for making the maze false {didn't started yet}, and making the maze map.
maze <- false;
 mazecount <- 0;
 mazestart <- false;
 mazeobjects();
 print( "=== Maze Minigame Loaded ===" );

Third:  CreateMazeObjects
function mazeobjects();
{
CreateObject(1078,2,Vector(-382.707, -575.289, 1071.11),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(310,2,Vector(-333.354, -594.997, 1071.3),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(310,2,Vector(-425.653, -598.008, 1071.3),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(310,2,Vector(-385.225, -600.134, 1071.3),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(310,2,Vector(-395.847, -554.743, 1071.3),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(2505,2,Vector(-382.539, -577.317, 1073.05),255).RotateToEuler(Vector(3.14159, 3.14159, 1.5416),1)
CreateObject(2505,2,Vector(-429.002, -576.413, 1073.05),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(310,2,Vector(-452.034, -582.818, 1071.3),255).RotateToEuler(Vector(0, 0, 1.55),1)
CreateObject(310,2,Vector(-421.297, -554.912, 1071.3),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(2505,2,Vector(-337.211, -572.848, 1073.02),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(310,2,Vector(-314.453, -568.476, 1071.3),255).RotateToEuler(Vector(0, 0, 1.55),1)
CreateObject(310,2,Vector(-327.652, -551.383, 1071.3),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(310,2,Vector(-333.015, -550.631, 1071.3),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(310,2,Vector(-323.242, -550.807, 1071.3),255).RotateToEuler(Vector(3.14159, -3.14159, 1.5416),1)
CreateObject(310,2,Vector(-331.936, -545.814, 1071.3),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(310,2,Vector(-340.61, -545.855, 1071.3),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(310,2,Vector(-349.144, -545.831, 1071.3),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(310,2,Vector(-357.863, -545.785, 1071.3),255).RotateToEuler(Vector(0, 0, 0),1)
CreateObject(310,2,Vector(-358.379, -550.907, 1071.3),255).RotateToEuler(Vector(0, 0, 1.45),1)
}

Fourth: When player have been killed or get disconnected, get out of the maze count.
function onPlayerKill( killer, player, reason, bodypart )
{
if ( Stats[ player.ID ].mazerunner )
{
mazecount--;
Message( "[#00de00]Minigame: [#fbf3f3]" + player.Name + " is out of the maze." );
if ( mazecount == 0 ) closemaze();
Stats[ player.ID ].mazerunner = false;
}
}

function onPlayerDeath( player, reason )
{
if ( Stats[ player.ID ].mazerunner )
{
mazecount--;
Message( "[#00de00]Minigame: [#fbf3f3]" + player.Name + " is out of the maze." );
if ( mazecount == 0 ) closemaze();
Stats[ player.ID ].mazerunner = false;
}
}


function onPlayerPart( player, reason )
{
if ( Stats[ player.ID ].mazerunner )
{
mazecount--;
Message( "[#00de00]Minigame: [#fbf3f3]" + player.Name + " is out of the maze." );
if ( mazecount == 0 ) closemaze();
Stats[ player.ID ].mazerunner = false;
}
}

Fifthly: Maze Commands, maze, joinmaze and startmaze.
if( Stats[player.ID].mazerunner ) return MessagePlayer( "[#00de00]Minigame: [#fbf3f3]You can't use commands while you playing in a maze.", player );
cmd = cmd.tolower ( );

if( cmd == "maze")
{
  if( maze ) MessagePlayer("[#00de00]Minigame: [#fbf3f3]maze is already started.. ",player);
  else
{
   maze = true;
   Message("[#00de00]Minigame: [#fbf3f3]"+ player.Name +" has asked for maze, 20sec to join him.");
   NewTimer( "mazetimer", 20000, 1);
}
}
 else if( cmd == "joinmaze")
{
 if ( !player.Spawned )MessagePlayer("[#00de00]Information: [#fbf3f3]Spawn to use this command" player);
 else if ( !maze ) MessagePlayer("[#00de00]Minigame: [#fbf3f3]maze is not started do /maze", player);
 else if ( Stats[player.ID].mazerunner ) MessagePlayer("[#00de00]Minigame: [#fbf3f3]You already a maze runner.",player);
 else if ( mazecount > 4 ) MessagePlayer("[#00de00]Minigame: [#fbf3f3]Too Late!", player);
 else if ( mazestart ) MessagePlayer("[#00de00]Minigame: [#fbf3f3]Too Late!", player);
 else {
  mazecount++;
   for( local i=0; i <= mazecount; i++ )
  {
   local plr = FindPlayer( i );
  }
  player.Frozen = true;
  Stats[player.ID].mazerunner = true;
  player.World = 2;
  player.CanAttack = false;
  player.Pos = Vector(-449.832, -579.169, 1075.8);
  Message("[#00de00]Minigame: [#fbf3f3]"+ player.Name +" has joined the maze.")
 }
 }
 else if( cmd == "startmaze")
{
 if ( !player.Spawned )MessagePlayer("[#00de00]Information: [#fbf3f3]Spawn to use this command" player);
 else if ( !maze ) MessagePlayer("[#00de00]Minigame: [#fbf3f3]maze is not started do /maze fisrt to start one.", player);
 else if ( !Stats[player.ID].mazerunner ) MessagePlayer("[#00de00]Minigame: [#fbf3f3]You aren't a maze runner to start it.",player);
 else if ( mazecount < 1 ) MessagePlayer("[#00de00]Minigame: [#fbf3f3]You can't start the maze, as you are only.", player);
 else if ( mazestart ) MessagePlayer("[#00de00]Minigame: [#fbf3f3]The maze is already started.", player);
 else {
 startmaze();
 }
 }

Sixth: Maze functions:
function startmaze()
{
    mazestart = true;
    CreatePickup(376, 2, 50, Vector(-355.151, -548.226, 1072.8), 255, true);
    local plr;
    for( local i=0; i <= GetMaxPlayers(); i++ )
{
{
    plr = FindPlayer( i );
    if ( ( plr ) && ( Stats[ plr.ID ].mazerunner ) )
{
    plr.IsFrozen = false;
}
}
}
}

function closemaze()
{
    maze = false;
    mazestart = false;
    mazecount = 0;
    local plr;
    for( local i=0; i <= GetMaxPlayers(); i++ ){
{
    plr = FindPlayer( i );
    if ( plr )
{
    if( Stats[ plr.ID ].mazerunner )
{
    Stats[ plr.ID ].mazerunner = false;
    plr.IsFrozen = false;
    plr.CanAttack = true;
    plr.World = 1;
    plr.Pos = Vector( 496, -84, 11  );
}
}
}
}
}

function mazetimer()
{
   if ( mazecount > 1 )
{
  NewTimer( "MAnn", 1000, 1, "3" );
  NewTimer( "MAnn", 3000, 1, "2" );
  NewTimer( "MAnn", 6000, 1, "1" );
  NewTimer( "MAnn", 7000, 1, "0" );
}
   else closemaze();
}

function MAnn( number )
{
       for( local i=0; i <= GetMaxPlayers(); i++ )
  {
   local plr = FindPlayer( i );
      if ( ( plr ) && ( Stats[ plr.ID ].mazerunner ) )
                        {
      switch( number.tointeger() )
          {
       case 0:
       startmaze();
       Announce( "Go!", plr );
       break;

       case 1:
       Announce( "1", plr );
       break;
       
       case 2:
       Announce( "2", plr );
       break;
       
       case 3:
       Announce( "3", plr );
       break;
          }
      }
  }
}

Seventh: onPickupPickedUp( player, pickup )
  if ( pickup.Model == 376 )
{
  if ( Stats[ player.ID ].mazerunner )
{
  IncCash( player, 5000 );
  MessagePlayer("[#00de00]Minigame: [#fbf3f3]Congratulation! You Got 5000$" player);
  pickup.Remove();
  player.World = 1;
  Message( "[#00de00]Minigame: [#fbf3f3]Congratulation! "+player.Name+" Has finished the maze." );
  closemaze();
}
}

Finally, hope that like you.
Your friend,
Mahmoud Ashraf.
#51
Clans and Families / Re: FC - Fight Club
May 31, 2018, 03:27 PM
GL.
#52
Quote from: Kid_Buu on May 31, 2018, 02:53 PMHi, I have the commands /reportlist and /banlist but they have an error.
What happens is only shows a single report or a ban, could someone help me?

May you forget this.
local q = QuerySQL( Ban, "SELECT * FROM BannedPlayers" ), i = 0;  // Change it to your ban database
 while( GetSQLColumnData( q, 0 ) )
 {
  local
   Name = GetSQLColumnData( q, 0 ),
   Reason = GetSQLColumnData( q, 2 );   //Delete it if you don't have reason.
   MessagePlayer("[#00de00]Banned: [#fbf3f3]"+Name+", Reason: "+Reason+".",player);
  GetSQLNextRow( q );
  i++;
 }
#53
Support / Re: Register System
May 26, 2018, 02:48 PM
Quote from: Xenon on May 26, 2018, 01:47 PMI'm trying to guess what are you talking about...
Open server.conf file and edit sqgamemode line by adding your path to main.nut, eg. sqgamemode scripts/main.nut
He mean that he have register system, but he can't copy and paste it.
Another #Scrab_Moment
#54
Quote from: umar4911 on May 25, 2018, 07:24 AMHe still could not unserstand
I Just tried to help him, @umar4911 did you understand my explain?
#55
Sunshine Auto is working with two ways.

The first way, with the original syntax of blank server.

First, download this.
Sunshine Auto's System., this is the system with the original blank server cars pos.
Open server.conf you will see this.

Look at cars ids, that after this //.
And open sunshine auto's database with DB Browser for SQLite.
You will see the cars Index.

Now, see them together we may understand any thing.

Black in server.conf is the cars id, and the black which in database is the index cars.
And it's be like this.
Quote from: rulk on Sep 10, 2015, 07:00 PM
  • The array index represents the in-game VehicleID.
For example: VehicleID 1, is in array index 1.
VehicleID 2, is in array index 2.
VehicleID 3, is in array index 3.
... etc etc etc ...

The red color in server.conf is the vehs ids and in database vehs name.
Wanna add new car add line in server.conf and line in database but make them both like the cars which in the system.



The Second way by using CreateVehicle.
It's similar than the first way, but you don't using server.conf you will use CreateVehicle. and the same steps.




Or you can use KrlozZ...'s System.
#56
There's search place, just type Veh System, you can find system like this. ~~< Search before asking!! >~~
Sunshine Auto's - by rulk or this Vehicle System - by KrlozZ...
#57
Quote from: =RK=MarineForce on May 15, 2018, 02:58 PMIf You Don't Want to help so go away from this topic! I don't want Your Help You are not biggest scripter of VC-MP There are more best scripters are help me more than u Go away from this topic if u want to not help if u want to help so what i m giving Request if u can't give me it so go away from this topic there are more best scripters man ARE THERE @Tornado,Mohammed,SaiyanAttack,Zeus,Anik,.,vitogta They are best than u if u want to help so give here what i want plese!
Why you angry now? He is right, you must learn you will never make your server with the others help, Just Try!!!,
Quote from: =RK=MarineForce on May 15, 2018, 06:55 AMI m trying Thanks For Support Gud~
You was right that you said you will try, but did you tried? Ha, Did you?
Bro just try, I'm Become Scripter from 2018, i was just beginner in 2017.
But it didn't Matter when you started it's with you want to be or not.
Scripting don't want an English grammar to make, it want to just thinking what you will do and how?
English grammars only in Massages! :V
Quote from: Ali Ahmed on May 15, 2018, 04:42 PMThis is not tested there may be mistakes
class diepos
{
diepos = false;
x = 0;
y = 0;
z = 0;
}
function onPlayerJoin( player )
{
dp[ player.ID ] = diepos( );
}
function onPlayerDeath( player, reason )
{
dp[ player.ID ].x; = player.Pos.x
dp[ player.ID ].y; = player.Pos.y
dp[ player.ID ].z; = player.Pos.z
}
function onPlayerSpawn( player )
{
if( dp[ player.ID ].diepos = true ) {
player.Pos.x = dp[ player.ID ].x;
player.Pos.y = dp[ player.ID ].y;
player.Pos.z = dp[ player.ID ].z; }
}
Here is your want, from Ali Ahmed.
Do you think this is very hard as you said?
Quote from: =RK=MarineForce on May 15, 2018, 06:59 AMIts Hard Plese, Give me The code i will get some more helps from him
Just try to understand it, not only copy and paste.
#58
Snippet Showroom / Re: Some commands
May 12, 2018, 10:22 PM
Quote from: =RK=MarineForce on May 12, 2018, 07:36 PMhow to learn vc-mp script?
From
wiki.vc-mp.org
And our examples on this forum.
#59
Snippet Showroom / Re: Some commands
May 12, 2018, 07:23 PM
Quote from: =RK=MarineForce on May 12, 2018, 04:41 PMfunctions give me by mohammed


i not teach script for wiki and I don't know more much make hard cmds and function since i m member of 2015 scripting. my enligsh is bad
u remember u teach me how to make fix cmd remember i make it by your teaching goto fix heal armour

Bro you can understand everything by yourself, I'm was bad scripter and always asking for scripts, but my friend said that you will never make your life good if you live for asking people to help you, you must create yourself and always know that you can make any thing impossible as you can make it possible. Just believe yourself.

My friend who said that was @KuRiMi and he was right about everything he said and now look who I am?
#60
Quote from: =RK=MarineForce on May 12, 2018, 07:10 AMFunction OnGetPlayer
 {
        if ( IsNum( plr ) )
        {
            plr = FindPlayer( plr.tointeger() );
            if ( plr ) return plr;
            else return null;
        }
     else
        {     
            plr = FindPlayer( plr );
            if ( plr ) return plr;
            else return null;
        }
    }
    else return null;
}

No Working >>

WTF?!!
function GetPlayer( plr )