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.

Topics - Kewun
1
Off-Topic General / [Tutorial] How To install GTA 5
« on January 21st, 2017, 07:51 PM »
2
Clans and Families / T.B.R
« on January 8th, 2017, 08:07 PM »
T.B.R Is back!

Leader: Kewun (me)
Members:

RockStarPL
TheRouke

Games: LU,VCMP

If u want join shoot me a pm
3
Off-Topic General / little question
« on January 7th, 2017, 02:57 PM »
Quote from maxorator on April 25th, 2016, 08:47 PM
A major update has been released for VC:MP. This version brings new features that require both the server and client to be updated for it to work, so the version is bumped to 04rel004.

Server Owners: Server and plugin updates can be found in this thread.



Client Update 04rel004
  • Added client-side GUIs and scripting. The client now has a Squirrel core for running GUI management scripts, and has a few basic client-side events, detailed below.
  • Added support for custom radar map. The minimap sections go to store/maps/radar/section<00-63>.png and the menu map sections go to store/maps/radar/region<00-08>.png
  • Added option to disable backface culling. This makes maps designed for GTA 3 look better since they weren't made considering backface culling used by VC.
  • Added option to disable helicopter blade damage.

All information about new scripting features, both server and client side, can be found in the topic about server update.

Credits to Juppi for the GUI library and Stormeus for integrating it with VC:MP. And me for implementing client side scripts!
but how do i enable / disable backface culling? is that in custom object or what?
4
Scripting and Server Management / returns true all the time
« on December 10th, 2016, 08:03 PM »
Code: [Select]
function GetVehiclePrice(player)
{
  if ( player.Vehicle ) {
    return ReadIniInteger("vdb.ini", "Vehicle" + player.Vehicle.ID, "Price");
  }
}

This code always returns "true" when it should display the price of vehicle
how do i fix that?
5
Off-Topic General / wait(ms) or sleep(ms) ?
« on November 27th, 2016, 07:20 PM »
Does squirrel or vcmp have something like wait(2000) or sleep(2000) like lua has? or i have to use timers?

example:

function onPlayerSpawn(player)
{
  MessagePlayer("You will receive a message in 2 seconds",player)
  wait(2000)
  MessagePlayer("Heres your message",player)
}
6
Script and Content Requests / /mycars needed :/
« on November 26th, 2016, 01:38 PM »
Code: [Select]
function onConsoleInput(cmd,text) {
 if ( cmd == "createdatabase" ) {
  try
  {
   print("Creating... please wait a few seconds")
   CreateVehicleDatabase()
   print("Success!")
  }
  catch (e)
  {
   print("Error: "+e)
  }
 }
}
function CreateVehicleDatabase() {
 for ( local i=0; i <=2600; i++) {
  local vehicles = FindVehicle(i)
  if ( vehicles ) {
   WriteIniInteger("vdb.ini","Vehicle"+vehicles.ID,"Price",rand()%100000)
   WriteIniString("vdb.ini","Vehicle"+vehicles.ID,"Owner","Liberty City")
   WriteIniString("vdb.ini","Vehicle"+vehicles.ID,"Model",GetVehicleName(vehicles))
  }
 }
}
function onPlayerCommand(player,cmd,text) {

 if ( cmd == "buycar" )
 {
  if ( !player.Vehicle ) {
   MessagePlayer("[#ff0000]You must be in a vehicle",player)
   return 0;
  }
  local model = ReadIniString("vdb.ini","Vehicle"+player.Vehicle.ID,"Model")
  local price = ReadIniInteger("vdb.ini","Vehicle"+player.Vehicle.ID,"Price")
  local owner = ReadIniString("vdb.ini","Vehicle"+player.Vehicle.ID,"Owner")
  if ( owner == player.Name ) {
   MessagePlayer("[#ff0000]This vehicle already is bought by you!",player)
   return false;
  }
  if ( owner == "Liberty City" ) {
   if ( price > player.Cash ) {
    MessagePlayer("[#ff0000]You dont have enought money to buy this vehicle",player)
    return false;
   }
   player.Cash -= price;
   WriteIniString("vdb.ini","Vehicle"+player.Vehicle.ID,"Owner",player.Name)
   MessagePlayer("[#00ff00]Congratulations, you bought this vehicle! you can now get it by using /getcar vehicleid",player)
  }
 }
 if ( cmd == "gimmecash" )
 {
  player.Cash += 10000
 }
 if ( cmd == "getcar" )
 {
  if ( player.Vehicle ) return false;
  if ( !text ) {
   MessagePlayer("[#ff0000]You dont have included vehicle id in /getcar",player)
   return false;
  }
  local targetcar = FindVehicle(text.tointeger())
  if ( targetcar ) {
   if ( ReadIniString("vdb.ini","Vehicle"+targetcar.ID, "Owner") != player.Name )  {
    MessagePlayer("[#ff0000]This vehicle does not belong to you",player)
    return false;
   }
   if ( ReadIniString("vdb.ini","Vehicle"+targetcar.ID,"Owner") == player.Name ) {
    targetcar.Pos = Vector(player.Pos.x+3,player.Pos.y,player.Pos.z)
    player.EnterVehicle(targetcar,DOOR_DRIVER)
   }
  }
 }
}
function onPlayerEnteredVehicle(player,vehicle,seat) {
 local model = ReadIniString("vdb.ini","Vehicle"+player.Vehicle.ID,"Model")
 local price = ReadIniInteger("vdb.ini","Vehicle"+player.Vehicle.ID,"Price")
 local owner = ReadIniString("vdb.ini","Vehicle"+player.Vehicle.ID,"Owner")
 MessagePlayer("[#ffffff]You entered a "+model+", Owner: "+owner+", Price: "+price+", ID: "+player.Vehicle.ID,player)
}


How can i do /mycars ? i dont know how to find from ini

I was forced to recreate the topic because people like @Ankris @Xmair spammed because they dont understand what is a request

And please post something that i will understand remember its a request
7
Support / forum bug or what
« on November 20th, 2016, 11:07 AM »
i see 77 guests online and half of them is performing "Choosing diffrent skin" what is this?
8
if ( player.Pos.Distance(Vector(-64.0652,-1482.05,10.4961)) || player.Pos.Distance(Vector(-677.717,1205.67,11.1087)) < 5 ) {

doesnt work when i use this

i can still buy ammunation weapons everywhere ;/ those are 2 ammunation pos's player need be in

command:
Code: [Select]
if ( cmd == "m4" ) {
if ( player.Pos.Distance(Vector(-64.0652,-1482.05,10.4961)) || player.Pos.Distance(Vector(-677.717,1205.67,11.1087)) < 5 ) {
if ( player.Cash < 2200 ) {
RedMessage("You dont have enought money to buy m4, need $2200",player)
return 0;
}
player.Cash -= 2200
player.GiveWeapon(26,100)
GreenMessage("M4 purchased ( $2200 ) ",player)
}
else {
RedMessage("You must be in ammunation",player)
return 0;
}
}
9
Scripting and Server Management / Cannot end PVP command
« on November 12th, 2016, 08:22 PM »
Code: [Select]
if ( cmd == "pvp" )
{
if ( !text ) MessagePlayer("[#ff0000] [ERROR] [#ffffff]You need to specify a player, and weapon id",player);
else
{
local pTemp = split(text, " "), p = GetPlayer( pTemp[ 0 ] );
if ( p )
{
local weapon = text.slice( pTemp[ 0 ].len() + 1 );

I need a command, to /pvp player weaponid
to pvp a player 1vs1, choosing the player and weapon
i dont know how to end this code
any help will be appericated
and like /pvpaccept, /pvpdecline
10
Off-Topic General / Poland vs Romania!
« on November 11th, 2016, 07:47 PM »
Vote!
11
Off-Topic General / hilarious enb series effects
« on November 5th, 2016, 08:59 PM »


holy fucking shit, this is what happend after i installed sweetfx and some enb shit
12
Off-Topic General / command line root
« on November 2nd, 2016, 10:56 AM »
What is the command line to run linux server when using root account?
13
Script and Content Requests / Cheat Codes in script
« on November 2nd, 2016, 10:29 AM »
I need a idea to make bind keys cheat  codes
example player types panzer ( not in chat ), it spawns a tank near him
how?
14
Off-Topic General / Vice City Roleplay 2.0 ( Need Helpers )
« on October 27th, 2016, 06:22 PM »
We are looking for some people who will help us scripting the server ( or making mvl ) or in development

VCRP Dev Team BLUE( scripters )
- Kewun

VCRP Dev Team RED ( MVL )
-TheRouke


For apply, send me a PM.
15
Scripting and Server Management / cant getin to some cars
« on October 26th, 2016, 08:14 PM »
in my server, i cant get in to some vehicles ( admiral, maverick )
ive even tried to making them FindVehicle   .Locked = false  but that didnt also help..
any solution?