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 - Terror_Styles

#1
It is best Property System Provided in Forums
But @Cool What need to bump? When You can Like This Post or Can Message Seby Personally?
Do you wanna Increase Posts?
#2
Maybe you helped this guy out but next time

To avoid spam!


Thanks,
#3
Servers / Re: [0.4] Rob the Vehicles
Jul 20, 2017, 03:16 PM
Awesome Game Mode Can't wait to see!
#4
Not Tested Try..

function onPlayerHealthChange( player, lastHP, newHP )
{
     if ( player.Health < 100 )
{
MessagePlayer( "You just lost " + ( lastHP - newHP ) + " health.", player );
MessagePlayer( "Regenration random health in 5 sec", player );
NewTimer( "Healing", 5000, 1, player );
}
function Healing( player )

local num = Random(1, 4);
if ( num == 1 )
{
player.Health += 25
PrivMessage( player, "You recieve an add-on of Health Pack 25" );
}
else if ( num == 2 )
{
player.Health += 50
PrivMessage( player, "You recieve an add-on of Health Pack 50" );
}
else if ( num == 3 )
{
player.Health += 75
PrivMessage( player, "You recieve an add-on of Health Pack 75" );
}
else if ( num == 4 )
{
player.Health += 95
PrivMessage( player, "You recieve an add-on of Health Pack 95" );
}
}
function onPlayerMove( player, x1, y1, z1, x2, y2, z2 )
{
if ( player.Health > 100 )
{
player.Health = 100;
}
#5
Implement this Vehicle System provided by KrloZ
http://forum.vc-mp.org/?topic=4575.0

& Add this in buycar command
QuerySQL( Vehs, "INSERT INTO Creation ( Id, Model, X, Y, Z, Col1, Col2, World, Angle ) VALUES ( '"+VehicleID+"', '"+ModelID+"', '"+player.Pos.x+"', '"+player.Pos.y+"', '"+player.Pos.z+"', '"+ColID1+"', '"+ColID2+"',"' + WorldID + '", '"+player.Angle+"' )" );
QuerySQL( Vehs, "INSERT INTO Sale ( ID, Cost, Owner, Shared, Shared2) VALUES ( '"+VehicleID+"', '"+Price+"', 'Unowned', 'None', 'None' )" );
CreateVehicle(6400,0,player.Pos, player.Angle,00,00);



#6
Bro You are loàding any vehicle system? If Yes then which one?
#7
What do you mean by losing? Didn't Understand Really Will you go more briefly please?
#8
That's because of your vehicle system which is loaded. & It will be differ from mine.Stick to urs...
#9
There Could be 2 Reason of Why Your Cash is not Updating!

1.You might don't have copy pasted well!
2.As you said when you reconnect your stats get 0, Doing Reconnect Does not Saved ur last Stats in Fuzzie Account System, You will need to properly Do Rage quit Then There will be no problem
#10
Hey Guys! What's Going On?
I was just trying to create a new feature & I have one question
Can we Get Country Name from IPtoCountry Like As i Wanted to Implement this
function SetLanguage( player )
{
      local Country = IpToCountry( player.IP );
      if ( IpToCountry( player ) == How to Get Country name )
{
  status[ player.ID ].Language = "English";
}
}


Thanks!

Regards, Terror Styles!
#11
Bro You said Correct but the post was updated! Thanks for letting him know error
#12
Command Updated!
#13
This is just an example import it like this

function onScriptLoad()
{
Vehs <- ConnectSQL( "Vehs.db" );
CreateTables();
LoadVehicles();
}
function onScriptUnload()
{
DisconnectSQL( Vehs );
}
function CreateTables()
{
QuerySQL(Vehs, "CREATE TABLE IF NOT EXISTS Creation ( ID NUMERIC, Model NUMERIC, X NUMERIC, Y NUMERIC, Z NUMERIC, Col1 NUMERIC, Col2 NUMERIC, Angle NUMERIC)" );
QuerySQL(Vehs, "CREATE TABLE IF NOT EXISTS Sale ( ID NUMERIC, Cost NUMERIC, Owner TEXT, Shared TEXT )" );
}

function onPlayerEnterVehicle( player, veh, isPassenger )
{
local VehicleID2 = QuerySQL( Vehs, "SELECT * FROM Sale" );
if(VehicleID2)
{
local q = QuerySQL( Vehs, "SELECT * FROM Sale WHERE ID='"+veh.ID+"'" );
local
Cost=GetSQLColumnData( q, 1 ),
Owner=GetSQLColumnData( q, 2 ),
Share=GetSQLColumnData( q, 3 ),
MessagePlayer( "[#FFFFFF] Vehicle ID: "+veh.ID+". Vehicle Price: "+Cost+".", player );
MessagePlayer( "[#FF8000] Vehicle Owner: "+Owner+".  Car Sharer: "+Share+".", player );
}
}
}

function LoadVehicles()
{
local q = QuerySQL( Vehs, "SELECT * FROM Creation" ), i = 0;
while( GetSQLColumnData( q, 0 ) )
{
local
Model= GetSQLColumnData( q, 1 ),
X= GetSQLColumnData( q, 2 ),
Y= GetSQLColumnData( q, 3 ),
Z= GetSQLColumnData( q, 4 ),
Col1= GetSQLColumnData( q, 5 ),
Col2= GetSQLColumnData( q, 6 ),
Angle= GetSQLColumnData( q, 7 );
CreateVehicle( Model, Vector(X, Y, Z), Angle, Col1, Col2 );
GetSQLNextRow( q );
i++;
}
print("Vehicles Count ("+i+")");
return 0;
}


function onPlayerCommand( player, cmd, text )
{
else if ( cmd == "buycar" )
{
if ( !text ) MessagePlayer("Use /"+cmd+" <Veh/ID>.", player);
else if ( !IsNum( text ) ) MessagePlayer("ID Must be numbers.", player );
else {
local q = QuerySQL( Vehs, "SELECT * FROM Sale WHERE ID='"+text+"'" );
local Cash = GetSQLColumnData( q, 1 );
if ( player.Cash < Cash ) MessagePlayer("Insufficient Cash.", player );
else
{
QuerySQL( Vehs, "INSERT INTO Creation ( Id, Model, X, Y, Z, Col1, Col2, Angle ) VALUES ( '"+VehicleID+"', '"+ModelID+"', '"+player.Pos.x+"', '"+player.Pos.y+"', '"+player.Pos.z+"', '"+ColID1+"', '"+ColID2+"', '"+player.Angle+"' )" );
QuerySQL( Vehs, "INSERT INTO Sale ( ID, Cost, Owner, Shared ) VALUES ( '"+VehicleID+"', '"+Price+"', 'Unowned', 'None' )" );
CreateVehicle(6400,0,player.Pos, player.Angle,00,00);
QuerySQL( Vehs, "UPDATE Sale SET Owner='"+player.Name+"' WHERE ID='"+text+"'" );
MessagePlayer( "You have bought Vehicle Model: " + GetVehicleNameFromModel( FindVehicle( text.tointeger() ).Model ) + " Vehicle ID "+text+".", player );
player.Cash -= Cash;
}
}
}
}


This is just a simple example to Make this System Work!
I am not sure This is 100% okay, Don't try it lol ( Maybe It Works ) But Its an example


Updated!
#14
Support / Re: help needed
Jul 18, 2017, 03:17 PM
There are many available in this forum & old Liberty Unleashed Forum!

Here are Some Search, Next Time Try yourself Searching those

Diego Subnet Ban: http://forum.vc-mp.org/?topic=346.msg2153#msg2153
Matheus UniqueID Ban: http://forum.vc-mp.org/?topic=200.msg1789#msg1789
Rocky TempBan VCMP 0.4 Modified by ME ( Just Changed Those PM's & Kick Functions ): https://pastebin.com/tX7LRyMz
HotDogCat TempBan VCMP 0.4 Modified by ME ( Changed PM's, Echo Messages & fix Kick Errors ): https://pastebin.com/NR9q6Ey4
Rocky's Ban System VCMP 0.4 : https://pastebin.com/sJEGqRrK


I have Modified some VCMP 0.3 System & Ported them to 0.4, All Systems are Tested!
If Owner of the System doesn't like my porting to 0.4, then I will remove it ;)
#15
Well Why Don't You Try Yourself? & If you find any error You can come here.
Simple & Easy!

Thanks me Later!