Page 36 of 60 FirstFirst ... 26 34 35 36 37 38 46 ... LastLast
Results 351 to 360 of 599

Thread: SAPP

  1. #351

    Re: SAPP

    true but it signifies a function/command to you, the person who are executing the command, whereby using the #n signifies any applicable player including yourself using the index of the player....sehe could implement it i guess shouldnt be a big of a deal.

  2. #352

    Re: SAPP

    "me" should just input the player index number of the person executing the command, so it should work. That's my point. Using #n is great for giving stuff to other players since you need to use /pl to get their number first anyway, having to use /pl to get my own number when "me" exists is just silly. Takes extra time and is convoluted.

  3. #353

    Re: SAPP

    true but reason why i say is because i have no hassle figuring out my index as i setup my server to show u a bunch of stuff when you join including ur index number....so yeah like you said it should have reflected back as"me" for the person executing the command.

  4. #354

    Re: SAPP

    It's not hard to get your own player index, it's a simple "/d me" command. However that's one extra step that's not needed.

  5. #355
    Senior Member sanni's Avatar
    Join Date
    May 2010
    Location
    SPARTAN
    Posts
    117

    Re: SAPP

    Is there any place where we can share our commands, events and custom gametypes or just post them in this thread?

    Here is what I made yesterday, just some simple weapon/vehicle spawn commands:

    Example use:
    Code:
    /givehog 1 -> gives player 1 a hog and puts him in the drivers seat
    /giverox 1 -> gives player 1 a rocket lauchner if he has less that 4 weapons
    /spawnhog 1 -> spawns a hog at players 1's location
    /spawnrox 1 -> spawns a rocket launcher at player 1's location
    Commands:
    Code:
    givehog #n 'spawn vehi "vehicles\warthog\mp_warthog" #n; venter #n' 4
    giverhog #n 'spawn vehi "vehicles\rwarthog\rwarthog" #n; venter #n' 4
    giveturret #n 'spawn vehi "vehicles\c gun turret\c gun turret_mp" #n; venter #n' 4
    giveghost #n 'spawn vehi "vehicles\ghost\ghost_mp" #n; venter #n' 4
    giveshee #n 'spawn vehi "vehicles\banshee\banshee_mp" #n; venter #n' 4
    givetank #n 'spawn vehi "vehicles\scorpion\scorpion_mp" #n; venter #n' 4
    
    
    giverox #n 'spawn weap "weapons\rocket launcher\rocket launcher" #n; wadd #n' 4
    givesnipe #n 'spawn weap "weapons\sniper rifle\sniper rifle" #n; wadd #n' 4
    givefrg #n 'spawn weap "weapons\plasma_cannon\plasma_cannon" #n; wadd #n' 4
    giveshotgun #n 'spawn weap "weapons\shotgun\shotgun" #n;wadd #n;ammo #n 24' 4
    givepistol #n 'spawn weap "weapons\pistol\pistol" #n; wadd #n' 4
    giveneedler #n 'spawn weap "weapons\needler\mp_needler" #n; wadd #n' 4
    giveprifle #n 'spawn weap "weapons\plasma rifle\plasma rifle" #n; wadd #n' 4
    givear #n 'spawn weap "weapons\assault rifle\assault rifle" #n; wadd #n' 4
    giveflamer #n 'spawn weap "weapons\flamethrower\flamethrower" #n; wadd #n' 4
    giveppistol #n 'spawn weap "weapons\plasma pistol\plasma pistol" #n; wadd #n' 4
    
    
    spawnshee #n 'spawn vehi "vehicles\banshee\banshee_mp" #n' 4
    spawntank #n 'spawn vehi "vehicles\scorpion\scorpion_mp" #n' 4
    spawnhog #n 'spawn vehi "vehicles\warthog\mp_warthog" #n' 4
    spawnrhog #n 'spawn vehi "vehicles\rwarthog\rwarthog" #n' 4
    spawnturret #n 'spawn vehi "vehicles\c gun turret\c gun turret_mp" #n' 4
    spawnghost #n 'spawn vehi "vehicles\ghost\ghost_mp" #n' 4
    spawnvehicles #n 'spawnshee #n;spawntank #n;spawnhog #n;spawnrhog #n;spawnturret #n;spawnghost #n' 4
    
    
    spawnrox #n 'spawn weap "weapons\rocket launcher\rocket launcher" #n' 4
    spawnsnipe #n 'spawn weap "weapons\sniper rifle\sniper rifle" #n' 4
    spawnfrg #n 'spawn weap "weapons\plasma_cannon\plasma_cannon" #n' 4
    spawnshotgun #n 'spawn weap "weapons\shotgun\shotgun" #n' 4
    spawnpistol #n 'spawn weap "weapons\pistol\pistol" #n' 4
    spawnneedler #n 'spawn weap "weapons\needler\mp_needler" #n' 4
    spawnprifle #n 'spawn weap "weapons\plasma rifle\plasma rifle" #n' 4
    spawnar #n 'spawn weap "weapons\assault rifle\assault rifle" #n' 4
    spawnflamer #n 'spawn weap "weapons\flamethrower\flamethrower" #n' 4
    spawnppistol #n 'spawn weap "weapons\plasma pistol\plasma pistol" #n' 4
    spawnweapons #n 'spawnrox #n;spawnsnipe #n;spawnfrg #n;spawnshotgun #n;spawnpistol #n;spawnneedler #n;spawnprifle #n;spawnar #n;spawnflamer #n;spawnppistol #n' 4
    
    
    spawnhp #n 'spawn eqip "powerups\health pack" #n' 4
    spawncamo #n 'spawn eqip "powerups\active camouflage" #n' 4
    spawnos #n 'spawn eqip "powerups\over shield" #n' 4
    spawnsticky #n 'spawn eqip "weapons\plasma grenade\plasma grenade" #n' 4
    spawnfrag #n 'spawn eqip "weapons\frag grenade\frag grenade" #n' 4
    spawnnades #n 'spawnfrag #n;spawnfrag #n;spawnfrag #n;spawnfrag #n;spawnsticky #n;spawnsticky #n;spawnsticky #n;spawnsticky #n;' 4
    spawnpus #n 'spawnhp #n;spawncamo #n;spawnos #n' 4
    
    
    spawnall #n 'spawnweapons #n;spawnpus #n;spawnnades #n;spawnvehicles #n' 4
    And now a question. I want to make a simple gun game. Where you start with the weakest weapon and for every kill you get a better one.
    This is hiw far I am right now. Not tested if it works though:
    Code:
    event_spawn $mode:Accumulate $map:bloodgulch $kills<1 'nades $n 0 0;wdel $n 0;wait 50; giveppistol $n;w8 2;say $n "Welcome to Gun Game. Kill players to earn better weapons."'
    event_kill $mode:Accumulate $map:bloodgulch $kills=1 'nades $n 0 0;wdel $n 0;wait 50; giveprifle $n;w8 1;say * "$name has earned a Plasma Rifle."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=1 'nades $n 0 0;wdel $n 0;wait 50; giveprifle $n'
    event_kill $mode:Accumulate $map:bloodgulch $kills=2 'nades $n 0 0;wdel $n 0;wait 50; givear $n;w8 1;say * "$name has earned an AR."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=2 'nades $n 0 0;wdel $n 0;wait 50; givear $n'
    event_kill $mode:Accumulate $map:bloodgulch $kills=3 'nades $n 0 0;wdel $n 0;wait 50; giveshotgun $n;ammo $n 24;w8 1;say * "$name has earned a Shotgun."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=3 'nades $n 0 0;wdel $n 0;wait 50; giveshotgun $n;ammo $n 24'
    event_kill $mode:Accumulate $map:bloodgulch $kills=4 'nades $n 0 0;wdel $n 0;wait 50; givepistol $n;w8 1;say * "$name has earned a Pistol."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=4 'nades $n 0 0;wdel $n 0;wait 50; givepistol $n'
    event_kill $mode:Accumulate $map:bloodgulch $kills=5 'nades $n 0 0;wdel $n 0;wait 50; giveflamer $n;w8 1;say * "$name has earned a Flamer."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=5 'nades $n 0 0;wdel $n 0;wait 50; giveflamer $n'
    event_kill $mode:Accumulate $map:bloodgulch $kills=6 'nades $n 0 0;wdel $n 0;wait 50; giverox $n;w8 1;say * "$name has earned a Rocket Launcher."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=6 'nades $n 0 0;wdel $n 0;wait 50; giverox $n'
    event_kill $mode:Accumulate $map:bloodgulch $kills=7 'nades $n 0 0;wdel $n 0;wait 50; givesnipe $n;w8 1;say * "$name has earned a Sniper Rifle."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=7 'nades $n 0 0;wdel $n 0;wait 50; givesnipe $n'
    event_kill $mode:Accumulate $map:bloodgulch $kills=8 'nades $n 0 0;wdel $n 0;wait 50; givefrg $n;w8 1;say * "$name has earned a FRG."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=8 'nades $n 0 0;wdel $n 0;wait 50; givefrg $n'
    event_kill $mode:Accumulate $map:bloodgulch $kills=9 'nades $n 0 0;wdel $n 0;wait 50; giveneedler $n;w8 1;say * "$name has earned a Needler jajajaja."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=9 'nades $n 0 0;wdel $n 0;wait 50; giveneedler $n'
    My question: Is there any way to despawn all weapons from the map? So that players only have what the server gives them and can't pickup the weapons that spawn on the map by default? The only thing that comes to my mind is replacing all weapons by a shotgun and then use the disable command to disable the shotgun. But that's not really what I want.
    Last edited by sanni; January 19th, 2013 at 03:38 AM.

  6. #356

    Re: SAPP

    .
    Last edited by Crenshaw; January 19th, 2013 at 04:42 AM.

  7. #357

    Re: SAPP

    Quote Originally Posted by sanni View Post
    Is there any place where we can share our commands, events and custom gametypes or just post them in this thread?

    Here is what I made yesterday, just some simple weapon/vehicle spawn commands:

    Example use:
    Code:
    /givehog 1 -> gives player 1 a hog and puts him in the drivers seat
    /giverox 1 -> gives player 1 a rocket lauchner if he has less that 4 weapons
    /spawnhog 1 -> spawns a hog at players 1's location
    /spawnrox 1 -> spawns a rocket launcher at player 1's location
    Commands:
    Code:
    givehog #n 'spawn vehi "vehicles\warthog\mp_warthog" #n; venter #n' 4
    giverhog #n 'spawn vehi "vehicles\rwarthog\rwarthog" #n; venter #n' 4
    giveturret #n 'spawn vehi "vehicles\c gun turret\c gun turret_mp" #n; venter #n' 4
    giveghost #n 'spawn vehi "vehicles\ghost\ghost_mp" #n; venter #n' 4
    giveshee #n 'spawn vehi "vehicles\banshee\banshee_mp" #n; venter #n' 4
    givetank #n 'spawn vehi "vehicles\scorpion\scorpion_mp" #n; venter #n' 4
    
    
    giverox #n 'spawn weap "weapons\rocket launcher\rocket launcher" #n; wadd #n' 4
    givesnipe #n 'spawn weap "weapons\sniper rifle\sniper rifle" #n; wadd #n' 4
    givefrg #n 'spawn weap "weapons\plasma_cannon\plasma_cannon" #n; wadd #n' 4
    giveshotgun #n 'spawn weap "weapons\shotgun\shotgun" #n;wadd #n;ammo #n 24' 4
    givepistol #n 'spawn weap "weapons\pistol\pistol" #n; wadd #n' 4
    giveneedler #n 'spawn weap "weapons\needler\mp_needler" #n; wadd #n' 4
    giveprifle #n 'spawn weap "weapons\plasma rifle\plasma rifle" #n; wadd #n' 4
    givear #n 'spawn weap "weapons\assault rifle\assault rifle" #n; wadd #n' 4
    giveflamer #n 'spawn weap "weapons\flamethrower\flamethrower" #n; wadd #n' 4
    giveppistol #n 'spawn weap "weapons\plasma pistol\plasma pistol" #n; wadd #n' 4
    
    
    spawnshee #n 'spawn vehi "vehicles\banshee\banshee_mp" #n' 4
    spawntank #n 'spawn vehi "vehicles\scorpion\scorpion_mp" #n' 4
    spawnhog #n 'spawn vehi "vehicles\warthog\mp_warthog" #n' 4
    spawnrhog #n 'spawn vehi "vehicles\rwarthog\rwarthog" #n' 4
    spawnturret #n 'spawn vehi "vehicles\c gun turret\c gun turret_mp" #n' 4
    spawnghost #n 'spawn vehi "vehicles\ghost\ghost_mp" #n' 4
    spawnvehicles #n 'spawnshee #n;spawntank #n;spawnhog #n;spawnrhog #n;spawnturret #n;spawnghost #n' 4
    
    
    spawnrox #n 'spawn weap "weapons\rocket launcher\rocket launcher" #n' 4
    spawnsnipe #n 'spawn weap "weapons\sniper rifle\sniper rifle" #n' 4
    spawnfrg #n 'spawn weap "weapons\plasma_cannon\plasma_cannon" #n' 4
    spawnshotgun #n 'spawn weap "weapons\shotgun\shotgun" #n' 4
    spawnpistol #n 'spawn weap "weapons\pistol\pistol" #n' 4
    spawnneedler #n 'spawn weap "weapons\needler\mp_needler" #n' 4
    spawnprifle #n 'spawn weap "weapons\plasma rifle\plasma rifle" #n' 4
    spawnar #n 'spawn weap "weapons\assault rifle\assault rifle" #n' 4
    spawnflamer #n 'spawn weap "weapons\flamethrower\flamethrower" #n' 4
    spawnppistol #n 'spawn weap "weapons\plasma pistol\plasma pistol" #n' 4
    spawnweapons #n 'spawnrox #n;spawnsnipe #n;spawnfrg #n;spawnshotgun #n;spawnpistol #n;spawnneedler #n;spawnprifle #n;spawnar #n;spawnflamer #n;spawnppistol #n' 4
    
    
    spawnhp #n 'spawn eqip "powerups\health pack" #n' 4
    spawncamo #n 'spawn eqip "powerups\active camouflage" #n' 4
    spawnos #n 'spawn eqip "powerups\over shield" #n' 4
    spawnsticky #n 'spawn eqip "weapons\plasma grenade\plasma grenade" #n' 4
    spawnfrag #n 'spawn eqip "weapons\frag grenade\frag grenade" #n' 4
    spawnnades #n 'spawnfrag #n;spawnfrag #n;spawnfrag #n;spawnfrag #n;spawnsticky #n;spawnsticky #n;spawnsticky #n;spawnsticky #n;' 4
    spawnpus #n 'spawnhp #n;spawncamo #n;spawnos #n' 4
    
    
    spawnall #n 'spawnweapons #n;spawnpus #n;spawnnades #n;spawnvehicles #n' 4
    And now a question. I want to make a simple gun game. Where you start with the weakest weapon and for every kill you get a better one.
    This is hiw far I am right now. Not tested if it works though:
    Code:
    event_spawn $mode:Accumulate $map:bloodgulch $kills<1 'nades $n 0 0;wdel $n 0;wait 50; giveppistol $n;w8 2;say $n "Welcome to Gun Game. Kill players to earn better weapons."'
    event_kill $mode:Accumulate $map:bloodgulch $kills=1 'nades $n 0 0;wdel $n 0;wait 50; giveprifle $n;w8 1;say * "$name has earned a Plasma Rifle."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=1 'nades $n 0 0;wdel $n 0;wait 50; giveprifle $n'
    event_kill $mode:Accumulate $map:bloodgulch $kills=2 'nades $n 0 0;wdel $n 0;wait 50; givear $n;w8 1;say * "$name has earned an AR."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=2 'nades $n 0 0;wdel $n 0;wait 50; givear $n'
    event_kill $mode:Accumulate $map:bloodgulch $kills=3 'nades $n 0 0;wdel $n 0;wait 50; giveshotgun $n;ammo $n 24;w8 1;say * "$name has earned a Shotgun."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=3 'nades $n 0 0;wdel $n 0;wait 50; giveshotgun $n;ammo $n 24'
    event_kill $mode:Accumulate $map:bloodgulch $kills=4 'nades $n 0 0;wdel $n 0;wait 50; givepistol $n;w8 1;say * "$name has earned a Pistol."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=4 'nades $n 0 0;wdel $n 0;wait 50; givepistol $n'
    event_kill $mode:Accumulate $map:bloodgulch $kills=5 'nades $n 0 0;wdel $n 0;wait 50; giveflamer $n;w8 1;say * "$name has earned a Flamer."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=5 'nades $n 0 0;wdel $n 0;wait 50; giveflamer $n'
    event_kill $mode:Accumulate $map:bloodgulch $kills=6 'nades $n 0 0;wdel $n 0;wait 50; giverox $n;w8 1;say * "$name has earned a Rocket Launcher."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=6 'nades $n 0 0;wdel $n 0;wait 50; giverox $n'
    event_kill $mode:Accumulate $map:bloodgulch $kills=7 'nades $n 0 0;wdel $n 0;wait 50; givesnipe $n;w8 1;say * "$name has earned a Sniper Rifle."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=7 'nades $n 0 0;wdel $n 0;wait 50; givesnipe $n'
    event_kill $mode:Accumulate $map:bloodgulch $kills=8 'nades $n 0 0;wdel $n 0;wait 50; givefrg $n;w8 1;say * "$name has earned a FRG."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=8 'nades $n 0 0;wdel $n 0;wait 50; givefrg $n'
    event_kill $mode:Accumulate $map:bloodgulch $kills=9 'nades $n 0 0;wdel $n 0;wait 50; giveneedler $n;w8 1;say * "$name has earned a Needler jajajaja."'
    event_spawn $mode:Accumulate $map:bloodgulch $kills=9 'nades $n 0 0;wdel $n 0;wait 50; giveneedler $n'
    My question: Is there any way to despawn all weapons from the map? So that players only have what the server gives them and can't pickup the weapons that spawn on the map by default? The only thing that comes to my mind is replacing all weapons by a shotgun and then use the disable command to disable the shotgun. But that's not really what I want.
    put this in your commands.txt
    event_die $map:bloodgulch $mode:Accumulate 'wdel $n' thats it. so as a player dies or get kill, whether it be suicide or whatever the weapons spawned specifically for that person will automatically be deleted. i made a game similar to what your making but mine gives vehicles aswell but to noob with more deaths and less kills so the server can even out the combat...lol

  8. #358
    Senior Member sanni's Avatar
    Join Date
    May 2010
    Location
    SPARTAN
    Posts
    117

    Re: SAPP

    While this is a very usefull command I will definitly use too. My main concern is about the weapons that spawn on the floor of the map. E.g. the sniper at the base, the rocket in the middle etc.
    I want to despawn those.

  9. #359

    Re: SAPP

    well that a whole new thing on a whole...i wud modify the gametype "accumulate" to only spawn plasma pistols, that the weakest gun to me,and then spawn theguns u want for the players as u wud and you wont need to worry about removing weapons.

  10. #360

    Re: SAPP

    Why do you have a 4 trailing all your commands sanni?

Thread Information

Users Browsing this Thread

There are currently 11 users browsing this thread. (0 members and 11 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •