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

Topics - Kewun

#2
Clans and Families / T.B.R
Jan 08, 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
Jan 07, 2017, 02:57 PM
Quote from: maxorator on Apr 25, 2016, 07:47 PMA 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
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) ?
Nov 27, 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
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
Nov 20, 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:
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
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!
Nov 11, 2016, 07:47 PM
Vote!
#11


holy fucking shit, this is what happend after i installed sweetfx and some enb shit
#12
Off-Topic General / command line root
Nov 02, 2016, 10:56 AM
What is the command line to run linux server when using root account?
#13
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
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
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?
#16
In linux server, when i try to set someones health to 100, he gets kicked for health hack

"Kicking player ID0 , health increased from 40 to 100"

lol why?
#17
Anyone knows the positions for bloodling and hotring races? the big stadium shit
i cant find anywhere.
#19
this is what i tried
function onScriptLoad()
{
g_Sender <- "[email protected]";
g_Rcver <- "[email protected]";
g_Subject <- "idk";
g_Message <- "works or not";

SendMail();
print("done")
}

function SendMail()
{
g_MailSocket <- NewSocket( "ProcessMail" );
g_MailSocket.SetNewConnFunc( "ConnEstablished" );
g_MailSocket.SetLostConnFunc( "CloseConnection" );
g_MailSocket.Connect( "-clip-", 25 );

g_Timer <- NewTimer( "CloseConnection", 2500, 1 );
}

function ConnEstablished()
{
g_MailSocket.Send( "HELO localhost\n" );
g_MailSocket.Send( "MAIL FROM: " + g_Sender + "\n" );
g_MailSocket.Send( "RCPT TO: " + g_Rcver + "\n" );
g_MailSocket.Send( "DATA\n" );
g_MailSocket.Send( "SUBJECT: " + g_Subject + "\n" );
g_MailSocket.Send( "\n" );
g_MailSocket.Send( g_Message + "\n" );
g_MailSocket.Send( ".\n" );
g_MailSocket.Send( "QUIT\n" );
}

function CloseConnection()
{
if ( g_MailSocket ) g_MailSocket.Delete();
g_Timer.Delete();
}


the email wasnt sent, i checked. but prints "done"
any help? i took those functions from digging in lu website

socket plugin is loaded!
#20
Snippet Showroom / Real Time
Sep 29, 2016, 02:12 PM
function onScriptLoad() {
  NewTimer("update",1,0)
}
function update() {
  SetTime ( date().hour, date().min );
}

As in topic title, this snippet changes your server time to real time

A good snippet for roleplay rpg servers