+- +-

+-User

Welcome, Guest.
Please login or register.
 
 
 

Login with your social network

Forgot your password?

+-Stats ezBlock

Members
Total Members: 14
Latest: F4S33H
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 85
Total Topics: 36
Most Online Today: 2
Most Online Ever: 71
(June 03, 2025, 12:07:22 pm)
Users Online
Members: 0
Guests: 3
Total: 3

Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Davut^
« on: January 19, 2018, 09:38:05 pm »

Thanks XD
Posted by: JIN
« on: January 19, 2018, 09:33:51 pm »

Nice cmd debut
Posted by: Davut^
« on: January 19, 2018, 08:09:08 pm »

Hi all well here is stats script
First you need to paste this above all and without any bracket
Code: [Select]
Kills <- 0
Deaths < - 0
Now next step is (function onScriptLoad())
Code: [Select]
accounts <- ConnectSQL( "scripts/accounts.sqlite" );
QuerySQL(accounts, "CREATE TABLE IF NOT EXISTS playeraccounts ( Name TEXT, Password TEXT, Cash INT, Kills INT, Deaths INT, Level INT, IP TEXT )" );
Now you guys have register system well np next step is (function onPlayerKill())
Code: [Select]
function onPlayerKill( killer,player, reason, bodypart )
{
Message( "[#ffffff][#1FFFF9]" + killer.Name + "[#FFF11B] killed [#FF0000] " + player.Name + "[#FFF11B] Weapon: [[#6BFF46]" + GetWeaponName( reason ) + "[#FFF11B]] [#FFF11B]Ping:[#1FFFF9][" + killer.Ping + "][#FFF11B]FPS:[#1FFFF9][" + killer.FPS + "]" );
MessagePlayer( "[#1FFFF9][PM]You have been awarded with 1000 due to killing " + player + "" , killer );
killer.Cash += 1000;
Kills += 1
QuerySQL( accounts, "UPDATE playeraccounts SET Kills=" + Kills + " WHERE Name='" + killer.Name + "'" );
if ( killer.Health <= 40 )
{
killer.Health += 5;
}
if ( player.Cash >= 250 )
{
MessagePlayer( "[#FD0F0F][PM]Sorry to say but Server has took 250 from your cash " , player );
player.Cash -= 250;
}
}
Kills saved Next step is (function onPlayerDeath)
Code: [Select]
{
Deaths += 1;
QuerySQL( accounts, "UPDATE playeraccounts SET Deaths=" + Deaths + " WHERE Name='" + player.Name + "'" );
}
Well thats it Good luck
.

By UD team. ;)

+-Recent Topics

Sexy Womans from your city - Verified Maidens by F4S33H
September 20, 2024, 01:48:04 pm

Good Bye by Davut^
March 07, 2018, 05:12:02 pm

Report-Sas by Davut^
February 27, 2018, 07:19:56 pm

Will be back Tomorrow. by JIN
February 17, 2018, 09:15:16 am

Storm is awesome!!! by JIN
February 17, 2018, 09:13:49 am

[Released]Count down script by [UDt]Davut^ by Davut^
February 02, 2018, 10:30:50 pm

Clan Information. by Davut^
February 02, 2018, 06:44:51 pm

Important Notice! & Format by Davut^
February 02, 2018, 06:36:19 pm

Rules by Davut^
February 02, 2018, 06:23:01 pm

[Accepted] Bninin Using [OFF] Clan by JIN
February 02, 2018, 03:07:28 am