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.


Messages - Force

Pages: 1 ... 15 16 [17]
241
mIRC/pawn Scripting / Re: HELP WANTED!
« on: June 11, 2008, 02:57:16 pm »
 whats your emial addy ricardo, rulk will send you an echo script and a few addons for gus 9 / 10, including buycar scripts  and buyprop scripts

242
mIRC/pawn Scripting / Re: Four questions
« on: May 04, 2008, 12:08:01 am »
I dont comment the first question, those who play more can tell their opinion.

For 2 and 3 i have simple solutions from old Ka server script, which uses the aliases from GUS (aliases are from GUS 9.00, but i think they should work in 10.00, too)

Auto-warn/kick code can be easily made using the alias vcmp.warn. The same alias is used in command !warn, so after getting three warns the player gets kicked. This should give you auto-warn after every DB:

Code: [Select]
on *:SIGNAL:vcmp.kill:{
  var %weapon = $iif($1 != $null,$1,Unknown) ;i think this is aready there; if not add it

...

    if (%weapon == 42) {    ;42 is the identifier number for drivebying
      vcmp.warn %killer Server Drive-bying

;this warns the killer, Server is the name of admin who gave the warn and Drive-bying is the reason for warn

    }
}

This doesnt include the warn given to teamkillers. In GUS 9 there aren't defined event for teamkilling, so we have to add it to alias vcmp.data (check if its in version 10, if not just add)

Code: [Select]
alias vcmp.data {
.....

  elseif ($1 == [teamkill]) {
    .signal vcmp.teamkill $5 $vcmp.getdeathinfo($4).name $vcmp.getdeathinfo($2).name
  }

.....
}

This makes a signal called vcmp.teamkill every time someone teamkills. Now we need to create the action for teamkilling. You can use the same warning system as in vcmp.kill, or add another, like direct kick after TK.

Code: [Select]
on *:SIGNAL:vcmp.teamkill:{
  var %weapon = $iif($1 != $null,$1,Unknown)
  var %victim = $iif($2 != $null,$vcmp.getid($2),Unknown)
  var %killer = $iif($3 != $null,$vcmp.getid($3),Unknown)

;these has to be here, this is new thing and needs its own definitions

  vcmp.warn %killer Server Teamkilling ; or just vcmp.kick %killer

}

If you dont want to mix the warns by !warn command and the warns from DB/TK, create new alias for drive-by warning. Easiest way is to copy all aliases related to vcmp.warn, and rename them eg. to vcmp.warn2.



3. can be quite similar, just create a ban system similar to the warn system. Put it inside on *:SIGNAL:vcmp.kill: and on *:SIGNAL:vcmp.teamkill:. Instead of DB's %weapon code just use the codes from the weapons that are forbidden, and instead of warning, use alias vcmp.ban.

Hope this helps  ;)

Ask if theres something to ask, there may also be typos  :P

I have been looking for that sort of thing :) Where in the standard GUS 9 script would it go?

Also, how do I make a killingspree script and do something like /announce or an announce command for a killingspree etc?

Hope that is clear enough?

Cheers

Pages: 1 ... 15 16 [17]