Author Topic: Script RequestS  (Read 1974 times)

0 Members and 1 Guest are viewing this topic.

Offline y0uRfath0r~

  • Major(1)
  • Posts: 21
Script RequestS
« on: July 09, 2010, 07:31:44 am »
1)I need a script which saves player's positions, useable twice and then after the player died it should be autoreseted.
     -Function to !load
2)Script which gives players the way to change their second weapon (soccom, ..) with a primary gun, so they can use 2 primary weapons at the beginning or 1 primary and 1 secondary.

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: Script RequestS
« Reply #1 on: July 09, 2010, 08:44:32 am »
Wrong place. This should be moved to Scripting disscusion and help.

ON-topic: n 1 is already made. Search for position saver or something similar using search function.
i dont really understand n2...

Offline y0uRfath0r~

  • Major(1)
  • Posts: 21
Re: Script RequestS
« Reply #2 on: July 09, 2010, 12:06:33 pm »
just a script which gives players 2 primary weapons.

cant describe it easier.

Offline kosik231

  • Major
  • *
  • Posts: 70
  • Where can I find Your soul?
Re: Script RequestS
« Reply #3 on: July 09, 2010, 12:27:03 pm »
you mean line with
Code: [Select]
ForceWeapon(ID,primaryweaponnumber,otherweaponthansecondary,0); ? xD
For signatures, you are allowed only one image in your signature which may not be wider and taller than 300 and 125 pixels, and may not be over 20kB in file size. No BMPs are allowed.

Offline y0uRfath0r~

  • Major(1)
  • Posts: 21
Re: Script RequestS
« Reply #4 on: July 09, 2010, 02:49:11 pm »
you mean line with
Code: [Select]
ForceWeapon(ID,primaryweaponnumber,otherweaponthansecondary,0); ? xD

yea.. xd

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: Script RequestS
« Reply #5 on: July 10, 2010, 01:18:10 am »
Try this, mby it'll work. if not, try changing weapon numbers.

ForceWeapon(ID,GetPlayerStat(i,'primary'),GetPlayerStat(i,'primary'),0);
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: Script RequestS
« Reply #6 on: July 10, 2010, 06:58:40 am »
Uh, i cant think of a way how to pick a secondary without the player doing an command/speak action.

It would look like this, but you would need to add a dozen of strings to prevent them doing it after they spawn/pick their weapon.
Code: (pascal) [Select]
function OnCommand(ID: Byte; Text: string): boolean;
begin
    if Text = '/111' then begin
      ForceWeapon(ID,GetPlayerStat(ID,'primary'),1,0);
    end;
    Result := false; // Return true if you want to ignore the command typed.
end;
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.