[Filter Script] Spawnwep system

Started by MacTavish, Jul 24, 2015, 12:43 PM

Previous topic - Next topic

MacTavish

Easy to use and Tested

Just put spawnwep.nut in your server folder then

class PlayerStats

{
     spawnwepenabled = false;

spawnwepinstalled = false;

}


function onScriptLoad()
{
db <- ConnectSQL( "Spawnwep.db" ); // if you already created the database on db string then remove this line
globalslot<-{};
stats <- array( GetMaxPlayers(), null );
dofile("spawnwep.nut", true);

}

function onPlayerJoin( player )
{
stats[player.ID] = PlayerStats();
loadspawnwep(player.Name,ID);
}

function onPlayerPart( player, reason )
{
  savespawnwep(player.Name,player.ID);
}

function onPlayerSpawn( player )
{
      spawnwep(player);
  }



function onPlayerCommand( player, cmd, text )
{
if(cmd=="spawnwep"||cmd=="dspawnwep")
    {
onspawnwepcommand(player.Name,cmd,text);
}
}




Note: there is a Table creating query must look it if you didnt loaded database as "db <- ConnectSQL

Credits: @hotdogcat

Update: added functions that was missed before

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Ksna

#1


http://vcmp.liberty-unleashed.co.uk/forum/index.php?topic=1408.msg11189#msg11189
and this is a snippet you posted in in script releases

and stop claiming other's script as your's or your grandfather's or your grandmother's
http://forum.vc-mp.org/?topic=1078.msg7125#msg7125

MacTavish

Where did i said that i'd created this?

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Ksna

Quote from: Beztone on Jul 24, 2015, 04:19 PMWhere did i said that i'd created this?

Then where are the credits

MacTavish

Quote from: Ksna on Jul 24, 2015, 04:20 PM
Quote from: Beztone on Jul 24, 2015, 04:19 PMWhere did i said that i'd created this?

Then where are the credits

Actually i'd just copied it from an script that my friend gave me, i didnt given credits because i was dont know about the creator

Added

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

[VSS]Shawn

hmmm Kratos leaked script btw thanks for release

Kratos_


Quote from: [VSS]Shawn on Jul 25, 2015, 04:04 AMhmmm Kratos leaked script btw thanks for release

Is this me ? Could you be more specific ?
In the middle of chaos , lies opportunity.

[VSS]Shawn

Yaar I dont know but on that script it was creater Kratos

Kratos_

#8
Quote from: [VSS]Shawn on Jul 25, 2015, 05:43 AMYaar I dont know but on that script it was creater Kratos

There are too many Kratos in this community .

  • [OSK_R]Kratos
  • Krato$
  • [KR]Kratos
  • [VU]Kratos
  • Kr@to$
  • Kratos_The_Power
  • [GOW]Kratos

Did anyone of them gave you scripts ?

The name "Kratos" now became a market-product . Probably they would be fan of that bald guy ( God of war ) .
I wanted to change this nick but too late has been happened now . Btw I have no associations with that script . And what is being leaked actually ? The snippet's source is already published by a guy in HotDogCat's thread .
In the middle of chaos , lies opportunity.

[VSS]Shawn


Drake

Quote from: Kratos_ on Jul 25, 2015, 05:42 AM
Quote from: [VSS]Shawn on Jul 25, 2015, 04:04 AMhmmm Kratos leaked script btw thanks for release

Is this me ? Could you be more specific ?
Quote from: [VSS]Shawn on Jul 25, 2015, 05:43 AMYaar I dont know but on that script it was creater Kratos
Quote from: [VSS]Shawn on Jul 25, 2015, 06:07 AMyaar it was Krato$

* Drake is shocked!

People still using that script? Rofl.
I am really shocked on seeing that the bugged script is still being used by these members of this community.
If you are wondering that was it my script? then Yes it was mine.
My previous name was "KraTO$" and I made that bugged script :-X which was leaked by some of the worst members of this community many months back(I think 5-6 months ago)
I dont wanna mention those names here.
Please for God's Sake -> "Stop using it"

"Peace At Last" LOL

[VSS]Shawn

Hmmm I Didn't use this script i just check it code and tell or what btw i delete that script Even You can see Xtreme City Server ehich is Using That Leaked Script

MacTavish

Quote from: [VSS]Shawn on Jul 26, 2015, 05:13 AMHmmm I Didn't use this script i just check it code and tell or what btw i delete that script Even You can see Xtreme City Server ehich is Using That Leaked Script

Oh come on i bet that you cant create a countdown with single timer so shut your mouth and take your ass out of my topic and this is not copied from GTX and the second thing i agree that i used leaked GTX to open my server but i scripted that from scratch when i was in karachi, i am not noob like you

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

KAKAN

LOL, a cd with single timer, is it a question? xD
A small kid who has started to script can even do it
Shall I paste that code here(cd with single timer)?
oh no

DizzasTeR

Quote from: KAKAN on Jul 26, 2015, 05:30 AMLOL, a cd with single timer, is it a question? xD
A small kid who has started to script can even do it
Shall I paste that code here(cd with single timer)?

If someone really knows the basics of coding then one can definitely create that but he is talking about some special guys who can't.