31
Script Discussion / Re: Cannot Create a Symbolic Link
« on: October 01, 2014, 01:21:28 pm »
The topic is already solved but thanks for link. Topic Locked.
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.
<?php
/*
config.php | Holds all the necessary information
------------------------------------------------
MaDKiLLeR's Online Stats v1.0.
http://online-stats.madkiller.tk/
Copyright (c) MaDKiLLeR 2013 - All Rights Reserved.
You cannot remove this message and my name from the footer as the "creater" of this webstats script.
*/
/*
This is the path to your Online Stats.
Examples:
http://stats.server.com/
http://myserver.com/stats/
etc..
*/
$stats_url = "http://http://webhost.efe-vcmp.tk/stats";
//Add you server's name here
$servername = "Extreme Fighting Era 2015";
//If you've a logo, specify it here. i.e replace the empty string with
//Logo.png and place the image within images/ directory.
$serverlogo = "http://i.imgur.com/b5wumV8.png";
//Sepcify the path to the database.
$databasepath = "DataBase.db";
//Declare the main fields.
$mainfields = array (
//Replace "Stats" with the name of your stats table.
'stats_table' => "Account",
//Replace "User" with the name of the column which holds the player's name in the stats table.
'nick_name' => "Name",
//Replace "Kills" with column's name which holds the kills.
'stats_kills' => "Kills,,",
//Replace "Deaths" with the column's name which holds the deaths.
'stats_deaths' => "Deaths",
//Replace "Joins" with the column's name which holds the joins.
'stats_joins' => "Joins",
);
/*
Weapon's Statistics part.
*/
//You've wep stats? Change this to true.
$wep_stats_enabled = true;
//If wepstats is enabled, specify the name of the table holding wepstats.
$wep_stats_table = "Wstats";
//Sepcify the column's name in bstats table which consists of nicknames.
$wep_stats_nickname = "User";
//You must edit these fields with the name of columns holding the data for associated weapon.
$wep_stats_fields = array (
'stats_m60' => "M60",
'stats_flames' => "FlameThrower",
'stats_laser_sniper' => "LaserScope",
'stats_sniper_rifle' => "SniperRifle",
'stats_ruger' => "Ruger",
'stats_mp5' => "MP5",
'stats_m4' => "M4",
'stats_ingram' => "Ingrams",
'stats_uzi' => "Uzi",
'stats_tec9' => "Tec9",
'stats_stubby' => "Stubby",
'stats_spaz' => "Spaz",
'stats_shotgun' => "Shotgun",
'stats_python' => "Python",
'stats_fist' => "Fist",
'stats_screwdriver' => "ScrewDriver",
'stats_golf_club' => "GolfClub",
'stats_nightstick' => "NightStick",
'stats_knife' => "Knife",
'stats_baseball_bat' => "BaseballBat",
'stats_hammer' => "Hammer",
'stats_cleaver' => "Cleaver",
'stats_machete' => "Machete",
'stats_katana' => "Katana",
'stats_chainsaw' => "Chainsaw",
'stats_colt45' => "Colt45"
);
//Weapons you would like to see on Wep Stats page. Please limit these to a reasonable number.
//Before adding any weapon, check the correct name for it!
/*
For Example, if you want to show Heli Blades, then in the array,
add heli_blades.
Select the weapon correct name for the weapon according to this:
heli_blades = HeliBaldes
explosion = Explosion
driveby = Driveby
vehicle = Vehicle
heli_canon = HeliCanon
m60 = M60
flames = FlameThrower
laser_sniper = LaserScope
sniper_rifle = SniperRifle
ruger = Ruger
mp5 = MP5
m4 = M4
ingram = Ingrams
uzi = Uzi
tec9 = Tec9
stubby = Stubby
spaz = Spaz
shotgun = Shotgun
python = Python
fist = Fist
screwdriver = ScrewDriver
golf_club = GolfClub
nightstick = NightStick
knife = Knife
baseball_bat = BaseballBat
hammer = Hammer
cleaver = Cleaver
machete = Machete
katana = Katana
chainsaw = Chainsaw
colt45 = Colt45
*/
$wep_show = array (
'm4',
'm60',
'mp5',
'ruger',
'ingram',
'uzi',
'stubby',
'spaz',
'shotgun'
);
/*
Body Parts Statistics
*/
//You've Body Parts stats? Set this to true then.
$bp_stats_enabled = true;
//Sepcify the name of the table which holds the bstats.
$bp_stats_table = "Bstats";
//Sepcify the column's name in bstats table which consists of nicknames.
$bp_stats_nickname = "User";
//Edit these fields with the name of columns in your bstats table, holding stats for the respective bodypart.
$bp_stats_fields = array (
'stats_left_arm' => "LeftArm",
'stats_right_arm' => "RightArm",
'stats_left_leg' => "LeftLeg",
'stats_right_leg' => "RightLeg",
'stats_body' => "Body",
'stats_torso' => "Torso",
'stats_head' => "Head"
);
//Don't edit this array, move on.
$bp_show = array (
'left_arm',
'right_arm',
'left_leg',
'right_leg',
'body',
'torso',
'head'
);
/*
Live Map
*/
//You've live map? If so, set this to true.
$live_map_enabled = false;
//Set the path to your live map. i.e http://98.25.63.125/server/map
//If on the same server, then specify the directory containing live map.
//Just for example, using EA's Live Map. Follow the same pattern:
$live_map_path = "";
/*
Clan Stats
*/
//Have clans stats? Set this to true
$clan_stats_enabled = false;
//The name of your table consisting clanstats
$clan_stats_table = "";
//Column in the clanstats table which holds the clan's name.
$clan_stats_field = "";
//Edit these fields with the name of the columns holding kills & deaths.
$clan_stats_fields = array (
'stats_kills' => "Kills",
'stats_deaths' => "Deaths",
);
?>
hey tell me how to make happy 1 minute for vccnr with pawn?
function onScriptLoad()
{
NewTimer("Happyminute",600000,0); // Once every 10 min
//whatever
}
function Happyminute()
{
ClientMessageToAll("Happy one minute rob any store and whatever...",0,255,127);
//something to set the happyminutevar variable that you should create to true
// a basic example of setting variables:
// suppose that You store your pickup data in a Database.Then update it like that
// You must add the new amount at Robbing ='" + here + "'
// Store the previous data so we can set it back again later.
QuerySQL( db, "Select Robbing FROM Pickups WHERE rowid LIKE '" + pickup.ID + "'");
status[player.ID].prev = GetSQLColumnData( q, 2 ); /// 2 is the data table
QuerySQL(db,"UPDATE Pickups SET Robbing='" + + "' WHERE rowid LIKE '" + pickup.ID + "'");
NewTimer( "SetBack", 60000, 1 );
}
function onPickupPickedUp( player, pickup )
{
if ( pickup.Model == 408 )
{
ClientMessgeToAll( player.Name + " is robbing a store near " + GetDistrictName( player.Pos.x, player.Pos.y ), 255,255,0 );
ClientMessage( "You Robbed : " + a, player,255,255,0 );
local add = player.Cash + a;
player.Cash+= add;
}
}
Here is a good enough "example" that should really help you.
Read the comments from the scripts, and learn.
http://liberty-unleashed.co.uk/VCWiki/Scripting/Squirrel/Scripts/FBS
If you have any troubles, just make posts, and we will try to teach you.