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 - [VM_U]Spectra.PhantoM^
1
Script Showroom / Re: My Account System v0.1 Beta
« on April 15th, 2016, 06:50 AM »
Quote from . on April 15th, 2016, 06:22 AM
AFAIK, QuerySQL() returns a user pointer if the operation succeeded or null if it failed. And treating that user pointer or null value as an integer might not be the best idea.

But the real issue is not releasing that statement result which is considered a memory leak. And therefore, on a fast track to a crash depending on how much memory that eats.

Secondly, the code is totally exposed to SQL Injection from anyone with a bit of SQL knowledge. The only thing that saves you is the fact that VCMP itself cleans up the user name a bit. But you should never rely on that for something this critical.

The rest of the code is pure nonsense and should not be given to new users as a sample script from which they can learn. Why? Because there's absolutely no safety implemented into this script. Any user and execute arbitrary code on the server with the "exec" command. Therefore anyone can do something like "/exec QuerySQL(DB, "DROP TABLE [PlayerAccount]");" or worse.

This script is not about an account system. This is just a list of all available server events and a few failed commands.

My recommendation to new users? Run from this script!
Im sorry bout that. anywayz updated.
2
Script Showroom / Re: My Account System v0.1 Beta
« on April 15th, 2016, 06:07 AM »
Quote from KAKAN on April 15th, 2016, 06:00 AM
Code: [Select]
local y = QuerySQL(DB, "SELECT Level FROM PlayerAccount WHERE Name='" + player.Name + "'" );
if ( y <= 0 ) MessagePlayer("Hello and welcome to the server.
I can clearly say that you haven't tested it yet.
oh plz thats false i did dis
Code: [Select]
if ( y <= 0 ) MessagePlayer("Hello and welcome to the server. Please /register to register in the server", player);
else if ( y >= 0 ) MessagePlayer("Welcome Back. Please /login to continue", player);
3
Script Showroom / My Account System v0.1 Beta
« on April 15th, 2016, 05:56 AM »

Lemme know if there are any bugs.
Bug Fixes till now:
Exec Prob fixed.
4
Scripting and Server Management / Re: Gang system messed up
« on April 14th, 2016, 10:48 AM »
Wow.....
-_- Im a  dope anywayz thnx solved.
5
Scripting and Server Management / Gang system messed up
« on April 14th, 2016, 10:24 AM »
so i copy/pasted a theirclantag function into my script made it like dis:
Code: [Select]
function onPlayerJoin( player )
{
if (TheirClanTag = "[thug]") Message(IM+"VIP Thugz Member " + player.Name + " Joined");
else Message("");
}
But someone named cap joined and it said VIP bla bla member cap joined.
Any Fix???
6
Servers / [0.4] Re: LA Cops VS Robbers
« on April 13th, 2016, 01:48 PM »
Server is now on VPS guyz
7
Servers / [0.4] Re: Black Night Doom Server.
« on April 12th, 2016, 05:25 AM »
[0.4] Black Night DOOOM server
Quote
YESH!!! LIVE DOOM!!!!
8
Servers / [0.4] Re: LA Cops 'n' Robbers
« on April 8th, 2016, 10:54 AM »
Now its Cops Vs Robbers.
9
Servers / [0.4] LA Cops VS Robbers
« on April 8th, 2016, 05:40 AM »
Server Name: [0.4] LA Cops VS Robbers[R-X Host]
Slots: 30
IP Adress: 58.27.198.185:5196
10
Scripting and Server Management / Re: system know who your admin
« on April 4th, 2016, 04:05 PM »
if i show u a ss of it working wot will u do doom?
11
Scripting and Server Management / Re: system know who your admin
« on April 4th, 2016, 10:52 AM »
First the class
Code: [Select]
class PlayerClass
{
Level = 0
}
Then(Note this is to be pasted on onplayerjoin):
Code: [Select]
stats[ player.ID ] = PlayerClass( player.Name, sqliteDB );
Finally(to be pasted on onplayercommand):
Code: [Select]
else if (cmd == "admins" || cmd == "admin")
{
local plr = GetPlayers();
{
plr = FindPlayer( player.ID );
if ((plr) && ( stats[player.ID].Level = 3))
{
Message("Admins: " + plr.Name + " [" + stats[player.ID].Level + "]");
}
else Message("No Admins Online");
}
}
Its tested and it works.
12
Servers / [0.4] Re: Treasure Hunting Server
« on March 4th, 2016, 03:16 PM »
NEW FORUM!
Visit treasuresvr.tk
13
Applications / Application: Server Host.
« on March 4th, 2016, 07:37 AM »
First Name: Talha
Last Name: Shahzad
Email Address: [email protected]
Server Name: [0.4] Treasure Hunting Server
Port: 8168
Slots(10-100): 45
14
Servers / [0.4] Re: Treasure Hunting Server
« on March 3rd, 2016, 08:33 AM »
Server is back again!
IP: 104.255.96.113:1234
15
Servers / [0.4] Re: Treasure Hunting Server
« on March 2nd, 2016, 08:20 AM »
Added New things:
  • Commands: /goto,/getcar
  • When the player die's he spawns at hospital and if has wanted level spawns at VCPD.
  • More functions and cmds. To much to explain so come at the server to find out.
  • When a player die's he leave's behind cash so the killer can pickup and gain money.
  • Added 100 More treasures.
  • Added /clues cmd.