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 - Gito Baloch

#31
Script Showroom / ( Simple ) Admin System.
Jul 11, 2021, 06:26 AM
----------///---LEVEL SYSTEM---\\\----------

Player Class
class PlayerClass
{
    Level = 0;
}

Creating Database
Admin <- ConnectSQL("Level.db");
QuerySQL(Admin, "create table if not exists Level ( Name Text ,Level NUMERIC DEFAULT 0) ");

Functions
function AdminInfo(player)
{
    local q = QuerySQL(Admin, "SELECT * FROM Level WHERE Name = '" + escapeSQLString(player.Name) + "'");
    if (q)
    {
        stats[ player.ID ].Level = GetSQLColumnData(q, 1);
    }
    else QuerySQL( Admin, "INSERT INTO Level ( Name, Level ) VALUES ( '" + escapeSQLString(player.Name) + "', ' 0 ' )" );
}

function SaveAdmin(player)
{
    QuerySQL( Admin, "UPDATE Level SET Level='"+ stats[ player.ID ].Level +"' WHERE Name = '"+player.Name+"'");
}

OnPlayer Join
AdminInfo();

OnPlayer Part
SaveAdmin();
Set Level Command
   else if ( ( cmd == "setlevel" ) || ( cmd == "setlvl" ) )
{
if ( stats[ player.ID ].Level < 5 ) MessagePlayer("[#ff0000]Error: [#ffffff]You don't have permission to use this command.",player);
else if ( !text ) PrivMessage( player, format( "Error: Use /%s <player> <Level>", cmd ) );
else
{
local txt = split( text, " " );
if ( txt.len() >= 2 )
{
local plr = FindPlayer( txt[ 0 ] ), lvl = txt[ 1 ];
if ( !plr ) PrivMessage( player, "Error: Unknown player." );
else if ( !IsNum( lvl ) ) ClientMessage( player, "Error: Level must be in numbers...",player, 255, 0, 0 );
else if ( ( lvl.tointeger() < 1 ) || ( lvl.tointeger() > 7 ) ) ClientMessage( "ERROR: Allowed Level amount are between 1 and 7.", player, 255, 0, 0 );
else if ( stats[ plr.ID ].Level == lvl.tointeger() ) PrivMessage( player, format( "Error: %s's Level is %d already.", plr.Name, lvl.tointeger() ) );
else
{
stats[ plr.ID ].Level = lvl.tointeger();
Message( "[#ffffff]"+player.Name+" [#25AAAA]changed the level of[#ffffff] "+plr.Name+"[#25AAAA] to [#ffffff]["+lvl.tointeger()+"].");
                }
}
else PrivMessage( player, format( "Error: Usage /%s <player> <Level>", cmd ) );
}
return 0;
}

Example command
else if ( cmd=="assrocket")
{
if(stats[player.ID].Level < 2) return MessagePlayer("[#ff0000]Error: [#ffffff]You don't have permission to use this command.",player);
else
{
if (!text) MessagePlayer("[#51FF06]Usage :[#FFFFFF] /assrocket <Name/ID>",player);
else
{
local plr = FindPlayer(text);
plr.Pos = player.Pos;
Message("[#ffffff]"+player.Name+ "[#25AAAA] has bombed [#ffffff]" +plr.Name);
CreateExplosion( 1, 1,plr.Pos.x -3 , plr.Pos.y -5, plr.Pos.z, -1, true );
CreateExplosion( 1, 2,plr.Pos.x -3, plr.Pos.y -5, plr.Pos.z, -1, true );
CreateExplosion( 1, 3,plr.Pos.x -3, plr.Pos.y -5, plr.Pos.z, -1, true );
CreateExplosion( 1, 4,plr.Pos.x -3 , plr.Pos.y -5, plr.Pos.z, -1, true );
}
}
return 0;
}
#32
Script Showroom / Re: Reward System
Jul 11, 2021, 06:09 AM
Quote from: Jutt on Jul 04, 2021, 08:35 PMbro give me reward system without level system plz

Without Level/Admin Systemelse if( cmd == "reward" )
{
if ( text ) MessagePlayer("[#ff0000]Error: "/reward <plr> <ammount>"", player);
{
local plr = GetPlayer( GetTok( text, " ", 1 ) ), cash = GetTok( text, " ", 2 );
cash = ammount.tointeger();
if ( !plr ) MessagePlayer("[#ff0000]Error: Unknown player.", player);
{
if( !IsNum( cash ) ) MessagePlayer( "[#ff0000]Error: Money Must Be Integer.", player );
{
plr.GiveMoney(cash.tointeger());
Message( "[#ffffff]"+ player.Name + "[#ff0000] has rewarded [#ffffffff]"+plr.Name+"[#ff0000] With Ammount[#ffffff] "+cash+".");
}
}
}
}


With Level/Admin Systemelse if( cmd == "reward" )
{
if (stats[player.ID].Level < 2 ) MessagePlayer("[#ff0000]Error: Access Denied.",player);
else if ( text ) MessagePlayer("[#ff0000]Error: "/reward <plr> <ammount>"", player);
{
local plr = GetPlayer( GetTok( text, " ", 1 ) ), cash = GetTok( text, " ", 2 );
cash = ammount.tointeger();
if ( !plr ) MessagePlayer("[#ff0000]Error: Unknown player.", player);
{
if( !IsNum( cash ) ) MessagePlayer( "[#ff0000]Error: Money Must Be Integer.", player );
{
plr.GiveMoney(cash.tointeger());
Message( "[#ffffff]"+ player.Name + "[#ff0000] has rewarded [#ffffffff]"+plr.Name+"[#ff0000] With Ammount[#ffffff] "+cash+".");
}
}
}
}
#33
"Waqt Sabka Badalta Hai" - New funny  ;D and Motivational  :thumbsup: story video is out.

Watch till the end.
https://www.youtube.com/watch?v=-kuEevxhzvo

It's in urdu.

Hamny milkay fun and shugal k lye video bnai hay aur mei jnta hu boht mistakes hyn kahani mn bh dam ni hoga but fir bh besti mt krna xd :'c
#34
I don't think any one will see this post i recommend you go and write this on vu forum thats more active then this forum sadly.
#35
General Discussion / Re: India cheaters
Jul 11, 2021, 04:16 AM
You are 100% right Hunting. a month ago i was playing gboyz i saw papa he was making sprees on newbies hhh i went to him to kill him but bru his m4 was too good or smth he was using m4 in close range and was raping the whole server with his m4. first i thought he has good m4 skills but after this hes a aimlocker confirmed yep
#37
Quote from: Sebastian on Mar 18, 2021, 09:19 AM10/10, and then I've seen this comment :(

and he is totally right.

My mistake i agree..
#41
M60 FRAGS | European City Server | Vice City Multi:Player.


https://www.youtube.com/watch?v=grHJ2BWJ-FE
#42
Quote from: Sebastian on Mar 11, 2021, 06:29 PMI can see the effort there.
You did the job - it was entertaining to watch ;)

Good luck !

PS: What video editor did you use ?

Thanks! & I used Filmora X. Cracked version.
#43
CTB X SCAM 1992 | MONTAGE | CAPTURE THE BASE | VICE CITY MULTI:PLAYER

https://www.youtube.com/watch?v=xTmuyq6R4SA

LIKE <3
#44
Quote from: MEGAMIND on Mar 09, 2021, 07:01 AM
Quote from: We3da on Feb 23, 2021, 03:12 PMWin 8.1 is full of bugs they ask to update windows and when i start windows update they say better install Win10 lol and my pc lags on win10 so..
well not win 8.1 is of bugs but win 8 is full of bugs, im on 8.1 as well no bugs till yet and can play all gta multiplayers till now

So Windows 8.1 will fix this bug. okay i'll mark it solved thanks.
#45
Nice server but some bugs. i found out one that when you pick Spaz and Rocket set it gives you stubby and rocket. fix it..