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 - Tamas

Pages: 1 ... 6 7 [8] 9
106
mIRC/pawn Scripting / Re: Script Help
« on: August 02, 2008, 02:26:40 am »
This isn't work too  :P

107
mIRC/pawn Scripting / Re: Working votekick for sansan
« on: August 01, 2008, 10:35:41 pm »
Thanks, its work now  :D

108
mIRC/pawn Scripting / Re: Script Help
« on: August 01, 2008, 09:03:45 pm »
Okay i rewrited the command, and i puted to /c command.
Now its look like this:
Quote
 
elseif (($2 == goto) && ($vcmp.loggedin($1) > 4)) {
if ($vcmp.hgetname($3) == $null) vcmp.adminmsg $1 Error: Invalid ID.
  else {
     if ($hget(vcmp,loggedin. $+ $1) < $hget(vcmp,loggedin. $+ $vcmp.nameid($3))) { vcmp.adminmsg $1 You can't transfer someone higher level admin than you. }
      else { vcmp.adminchat Transfering:[ [ $vcmp.hgetname($1) ] ] to:[ [ $vcmp.hgetname($3) ] ] | vcmp.setloc $1 $vcmp.hgetpos.x($3) $vcmp.hgetpos.y($3) $vcmp.hgetpos.z($3) 0 }
}
}
Anyway its work fine but if i insert command suc: /c goto [SRS]Tomi it says invalid ID, if i repleace the ($vcmp.hgetname($3) to: ($vcmp.nameid($3) its still not work and also the server teleport me to golf stage if i use name instead number..

Any idea?

109
mIRC/pawn Scripting / Re: Script Help
« on: August 01, 2008, 04:02:37 pm »
Hmm
That code is the same what i has just another variable:

Example: elseif ($vcmp.nameid($3) == $null) vcmp.adminmsg %id Error: Invalid ID.
I has the same too, anyway if i use your code my script didnt start.
Because my script not accept "elseif" command sometimes only "if" and "else"
But i dont understound why the name variables dont work, because if i write !testgoto fghzt --> it says invalid ID, but if i write correct name than its not work, teleport me to the center of the golf stage... strange.

110
mIRC/pawn Scripting / Script Help
« on: July 27, 2008, 09:35:13 pm »
Hi
This is my transfer script:

[/quote] elseif ($2 == !testgoto) {
      if ($hget(vcmp,loggedin. $+ %id) < 10) { vcmp.adminmsg %id You must be Admin Level 10 or higher to attempt this command. }
      else {
        if ($vcmp.nameid($3) == $null) vcmp.adminmsg %id Error: Invalid ID.
        else {
          if ($hget(vcmp,loggedin. $+ %id) < $hget(vcmp,loggedin. $+ $vcmp.nameid($3))) { vcmp.adminmsg %id You can't teleport someone higher level than you... }
          else {
             vcmp.setloc %id $vcmp.hgetpos.x($3) $vcmp.hgetpos.y($3) $vcmp.hgetpos.z($3) 0
             vcmp.adminchat Transfering:[ [ $vcmp.hgetname(%id) ] ] to:[ [ $vcmp.hgetname($3) ] ]
}
}
[/quote]

I want to do that when i type !testgoto --> i can give the player Name (not the ID only.) If i give examp: !testgoto 3 its work.
But in this format: !testgoto Tomi not .
Any idea how can i use this script with name variables too?

Tam

111
mIRC/pawn Scripting / Re: Working votekick for sansan
« on: July 27, 2008, 08:03:35 pm »
If its work fine than what i puted to the wrong place?
The vote kick alias , or the vcmp.event.part?

112
mIRC/pawn Scripting / Re: Working votekick for sansan
« on: July 27, 2008, 03:30:20 am »
I puted the codes to the following locations:

Quote
;--- misc aliases
;--- account shite
;--- Vote Kick Alias'

alias vcmp.votes !return $iif($readini(vcmp.votes.ini,VOTES,$vcmp.hgetname($1)),$v1,0)

alias vcmp.vkick {
  if ($vcmp.votes($1) >= 2) {
    !writeini -n vcmp.votes.ini VOTES $vcmp.hgetname($1) 3
    vcmp.adminchat Kicking $vcmp.hgetname($1) - Reason: Vote - Kicked $+ , By Admin: $iif($2,$v1,Unknown)
    vcmp.kick $1
    hdel ToKick $1
  }
  else {
    !writeini -n vcmp.votes.ini VOTES $vcmp.hgetname($1) $calc($vcmp.votes($1) + 1)
    vcmp.adminchat $vcmp.votes($1) $+ /3 votes recieved!
  }
}

event.part code:

Quote
on *:SIGNAL:vcmp.event.part:{

  if ($hget(ToKick,$2) == voting) {
    vcmp.adminchat Vote Kick cancelled for $2 $+ , Reason: Left the server!
    !writeini -n vcmp.votes.ini VOTES $2 0
    remini vcmp.votes.ini VOTES $2
    hdel ToKick $2
    hfree VoteKick
    hdel VotedTable $2
  .signal vcmp.event.delplayer $1 $2
  if (%echolevel > 0) vcmp.echo 3**03 $1 $2 03left the game. $vcmp.quitreason($3)
}

And when i go to ingame than type !votekick nothing happen :(

113
mIRC/pawn Scripting / Re: Help in kick error
« on: July 27, 2008, 01:22:09 am »
Yeah
I have the same problem too
<@BootRobocop> ** Admin kicked player: [SRS]Tomi Reason: noob

But the code is seems to be good:
else { vcmp.kick2 $3 | vcmp.adminchat ** Admin $vcmp.hgetname(%id) kicked player: [ $vcmp.hgetname($vcmp.nameid($3)) ] Reason: [ $4- ]

The problem is in the : $vcmp.hgetname(%id) code.


114
mIRC/pawn Scripting / Re: Dribe By Auto Kick Problem
« on: July 25, 2008, 10:00:41 pm »
Its not work :(
My vcmp.event.kill section

Quote
on *:SIGNAL:vcmp.event.kill:{
  if ($vcmp.deathreason($4) == Drive-By) {
  vcmp.adminchat ** Auto - Kick Player: $+ $chr(91) $vcmp.hgetname(%idk) $chr(93) Reason: $+ $chr(91) Drive - By $chr(93)
  vcmp.kick2 %idk
  vcmp.adminchat Admin-Auto-Kick Player:[ $vcmp.hgetname(%idk) ] Reason:[ Drive-By ]
  }
  var %namek = $strip($vcmp.nickcolor($1)), %named = $strip($vcmp.nickcolor($3)), %idk = $vcmp.nameid(%namek), %idd = $vcmp.nameid(%named), %spawnkill = $vcmp.config.checkforspawnkill(%idd,%idk)
  vcmp.validweapon %idk $4
  vcmp.killingspree.process %idk %idd
  if ($vcmp.acct.exists(%namek) != 0) { vcmp.addkill %namek | vcmp.addweaponstat %namek $4 }
  if ($vcmp.acct.exists(%named) != 0) vcmp.addkilled %named
  if (%echolevel > 1) vcmp.echo 04** $1 04killed $3 04 $par($vcmp.deathreason($4))
  if (($vcmp.isplayerspawned(%idk)) && (%spawnkill != $null)) vcmp.cmd.killplayer %idk Spawnkilling.
  .signal vcmp.event.handledeath %idd
}
The server show this message:
Quote
** Auto - Kick Player:[ ] Reason:[ Drive - By ]

And its not showing the kicked player name, and not kick him.
What did i wrong?

115
mIRC/pawn Scripting / Re: Buycar Scriptin Sasan
« on: July 25, 2008, 01:47:22 am »
Okay i solve the problem it was that:
(owners.ini)
I puted that there: SunshineAutos
Correct Format: Sunshine-Autos :)

Than the script will accept the buying request when you type !buycar
Anyway the !sharecar, !sharedcars commands are still not working.

116
mIRC/pawn Scripting / Re: Money Error
« on: July 25, 2008, 01:35:15 am »
Yeah it happent today.
My partner joined the server, than he registered and get tons of $$$$

I think its a very rare problem, but sometimes its happen. And if i know right it can also happen when somebody give cash to someone.
Its the bug of the VC-MP not the script i think.

117
mIRC/pawn Scripting / Re: Buycar Scriptin Sasan
« on: July 25, 2008, 12:27:40 am »
Ok I tryed it seems its work but:

When i go to Sunshine Autos and type: !buycar it says:
"This vehicle is allready owned" --> But its not :(
My cars.ini file:

[CARS]
1=VCNMaverick#1
[PRICES]
1=500
[ID]
1=1
[OWNERS]
1=
[NAMES]
1=VCNMaverick

Anyway 2 commands not work:
!mycars
!sharedcars

I dont know the script is 100% good, but if i put my name to the owners file example:

(vcmp.owners.ini)
[OWNERS]
1=[SRS]Tomi
Than i can getcar it for me than the server says you do not have the keys for this vehicle , but i can spawn it for me :D

118
mIRC/pawn Scripting / Re: Gametext Script?
« on: July 24, 2008, 07:33:48 pm »
Thx. Perfect

119
mIRC/pawn Scripting / Re: Gametext Script?
« on: July 24, 2008, 04:03:07 pm »
Yep in there it seems its work but...

Quote
elseif (($1 == !say) || ($1 == !chat)) vcmp.adminchat || $+ $nick $+ || $2-

its the say command and if i put another example:

Quote
elseif (($1 == !anothertestsaycommand) || ($1 == !atsc)) vcmp.adminchat || $+ $nick $+ || $2-

its not work only with that one

120
mIRC/pawn Scripting / Re: Buycar Scriptin Sasan
« on: July 24, 2008, 03:59:32 pm »
My options: (cars.ini)

[CARS]
1=VCNMaverick#1
[PRICES]
1=950000
[ID]
1=1
[OWNERS]
1=
[NAMES]
1=maverick

I have only 1 car in my config.ini  ;D
And yeah its work, but its not showing the ID, Model Name, and share with.
The HP, Price, and owner is work.
Any idea?

Pages: 1 ... 6 7 [8] 9