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.


Topics - thijn

Pages: [1] 2
1
Tutorials / Setting up a R2 Server made with Pawn
« on: February 25, 2010, 10:48:32 pm »
As i've helped alot of people on the scripting section here at the forums,
I though I would make a tutorial where i could link to when I get basic question like even starting it, config, cars, skins and such things.

The tutorial is 16 pages long (with 1 small credits page) so, Please take your time.

Tutorial can be found here

It would be the best if there were no mirrors, as i will update it once there is something missing // mistakes were made.

Also, Please report any mistakes or things you would like to be added.

Hope you learn something with it ;)

- Thijn

2
mIRC/pawn Scripting / World Boundaries Tool by Jacob
« on: August 22, 2009, 06:24:31 pm »
Does someone have the World Boundaries tool made by Jacob??
I really need it and the normal download location is down  :'( :'(

3
mIRC/pawn Scripting / Car Colors
« on: July 31, 2009, 12:13:56 pm »
I made a list of all 94 car colors, Maybe someone can use it.
Here it is

p.s Some colors could be wrong, if so try using the color before. so if 60 is not blue, use 59

4
mIRC/pawn Scripting / Getting server info from Website...
« on: March 07, 2009, 04:19:22 pm »
Hey all,
Maby someone can help me. I'm trying to get the server info from my website,
I thought it could with the masterlist file (http://vicecitymultiplayer.com/masterlist.php) but I don't know how :'(
It keeps saying "Error: invalid version", Maby someone knows what to do??

Thanks,
Thijn

5
mIRC/pawn Scripting / mIRC Logger
« on: September 28, 2008, 02:24:28 pm »
I maked a program that upload your mIRC log to a FTP server,
I use it because someone was cheating and my computer crashed later, so i had no proof. Now i have my log on the FTP sever ;)
The program uploads your log every minute to the Server.
Hope someone can use it.
Link

NOTE: The program is in BETA fase, so there could be bugs in it, Pleas post if you found one :)

6
mIRC/pawn Scripting / timer.refresh
« on: September 13, 2008, 12:27:12 am »
Hey all,
I want to make a script that checks if someone is at a location, ex: in the bank.
i thought something like:
Code: [Select]
timer.refresh 0 2 vcmp.chkloc(%name)
alias:
Code: [Select]

alias vcmp.chkloc {
if ((vcmp.rob.loc($1) == The Warenhouse) && ($vcmp.area($vcmp.getid($1)) != The Warenhouse)) {
vcmp.msg $vcmp.getid($1) You didnt gave the money on time. You lose $ $+ 100.
vcmp.cash- $vcmp.getid($1) 100
}
elseif ((vcmp.rob.loc($1) == The Warenhouse) && ($vcmp.area($vcmp.getid($1)) == The Warenhouse)) {
vcmp.msg $vcmp.getid($1) You gave the money just on time! You get 50% that 2500!
vcmp.cash+ $vcmp.getid($1) 2500
}
}
But this isnt working...
MIRC:
Quote
* /vcmp.rob.chk(%name): not connected to server
-
* /vcmp.rob.chk(%name): not connected to server
-
* /vcmp.rob.chk(%name): not connected to server
-
* /vcmp.rob.chk(%name): not connected to server
-
* /vcmp.rob.chk(%name): not connected to server
-
* /vcmp.rob.chk(%name): not connected to server
-
* /vcmp.rob.chk(%name): not connected to server
-
* /vcmp.rob.chk(%name): not connected to server
Why ??? ???
Not connected????
And how can i fix this problem??
Pleas help me...

7
XE Servers (Legacy) / New Hacker: Razebator
« on: August 30, 2008, 10:31:44 pm »
August 31, 2008, 04:28:21 AM
Im at the Canatian Server, and then i saw this guy..
He got Armour, and freezed it to.
Screen:


Hope someone can ban him

8
mIRC/pawn Scripting / !bikers etc.
« on: August 26, 2008, 04:45:53 pm »
I have this code:
Code: [Select]
  elseif ($2 == !bikers) {
  var %a = 0
  vcmp.say The follow players are using the Biker skin:
    while (%a <= 50) {
if ($vcmp.skin($vcmp.name(%a)) == Biker) vcmp.say $vcmp.name(%a)
      }
      !inc %a
  }
But when i do !bikers
it only says:
Quote
The follow players are using the Biker skin:
When i go to mIRC i see this error:
Quote
* /      if: not connected to server (line 1679, gus.mrc)
why??? and how can i fix it?

9
mIRC/pawn Scripting / Need help with Class detection
« on: August 25, 2008, 09:10:44 pm »
i have this code:
Code: [Select]
timer 1 3 vcmp.spawned($1)
alias:
Code: [Select]
alias vcmp.spawned {
  if (Biker isin $vcmp.area($vcmp.getid($1))) {
  hadd -m vcmp.skins $vcmp.name(%id) Biker
  vcmp.msg $vcmp.getid($1) You spawned as a Biker.
  vcmp.msg $vcmp.getid($1) Area: $vcmp.area($vcmp.getid($1))
  }
  if (Pole isin $vcmp.area($vcmp.getid($1))) {
  hadd -m vcmp.skins $vcmp.name($vcmp.getid($1)) Stripper
  vcmp.msg $vcmp.getid($1) You spawned as a Stripper.
    vcmp.msg %id Area: $vcmp.area($vcmp.getid($1))
  }
  if (Fire isin $vcmp.area($vcmp.getid($1))) {
  hadd -m vcmp.skins $vcmp.name($vcmp.getid($1)) Fire-Man
  vcmp.msg $vcmp.getid($1) You spawned as a Fire-Man.
    vcmp.msg $vcmp.getid($1) Area: $vcmp.area($vcmp.getid($1))
  }
  if (Sady isin $vcmp.area($vcmp.getid($1))) {
  hadd -m vcmp.skins $vcmp.name($vcmp.getid($1)) Paramedic
  vcmp.msg $vcmp.getid($1) You spawned as a Paramedic.
    vcmp.msg $vcmp.getid($1) Area: $vcmp.area($vcmp.getid($1))
  }
  if (Police isin $vcmp.area($vcmp.getid($1))) {
  hadd -m vcmp.skins $vcmp.name($vcmp.getid($1)) Cop
  vcmp.msg $vcmp.getid($1) You spawned as a Cop.
    vcmp.msg $vcmp.getid($1) Area: $vcmp.area($vcmp.getid($1))
  }
  if (Military isin $vcmp.area($vcmp.getid($1))) {
  hadd -m vcmp.skins $vcmp.name($vcmp.getid($1)) Military
  vcmp.msg $vcmp.getid($1) You spawned as a Military.
    vcmp.msg $vcmp.getid($1) Area: $vcmp.area($vcmp.getid($1))
  }
}
But when i spawn (it should chk my skin/location) mirc says a error:
Quote
* Timer 2 activated
-
* Timer 2 halted
-
* /vcmp.spawned($1   : not connected to server

Why??? I'm connected to my server ??

p.s Im using GUS

10
mIRC/pawn Scripting / Car pickup
« on: August 21, 2008, 11:13:41 am »
Is there any Pickup that can be picked up by car only??

11
mIRC/pawn Scripting / $vcmp.area(%id) Doesnt work
« on: August 20, 2008, 01:08:19 pm »
Whats wrong with this:
Quote
on *:SIGNAL:vcmp.spawn:{
  var %name = $1
  var %id = $vcmp.getid($1)
 
  echo @Server 5 $+ >> $1 spawned $+ 
  if ($vcmp.setting.spawn == On) vcmp.say >> $1 spawned
  if (($vcmp.pass(%id) != $null) && ($vcmp.lin(%id) != 1)) {
    if ($vcmp.ip(%name) == $readini(vcmp.admin.ini,IPS,%name)) {
      vcmp.say $iif($vcmp.level(%id) == 0,Member,$iif($vcmp.level(%id) == 1,Registered Player,Administrator)) %name Auto-Logged In (Admin Level: $vcmp.level(%id) $+ )
      vcmp.msg %id You Auto Logged In - Nick-Name: %name $+ , Admin Level: $vcmp.level(%id) $+ , Status: $iif($vcmp.level(%id) == 0,Member,$iif($vcmp.level(%id) == 1,Registered Player,Administrator))
      vcmp.timer.login %name off
      !writeini -n vcmp.admin.ini LIN %name 1
      !writeini -n vcmp.admin.ini IPS %name $vcmp.ip(%name)
    }
    else {
      vcmp.announce %id PLEASE LOGIN TO THIS NICK-NAME
      vcmp.msg %id You Must Login to this Nick-Name! Type: /c login <password>
      vcmp.sethp %id 0
    }
  }
  vcmp.add.spawns $vcmp.getid($1) 1

  ;!writeini -n vcmp.cheat.ini CHECK $1 0
  vcmp.msg %id $vcmp.area(%id)
}
Because if i spawn i get no msg.
When i do:
Quote
on *:SIGNAL:vcmp.spawn:{
  var %name = $1
  var %id = $vcmp.getid($1)
 
  echo @Server 5 $+ >> $1 spawned $+ 
  if ($vcmp.setting.spawn == On) vcmp.say >> $1 spawned
  if (($vcmp.pass(%id) != $null) && ($vcmp.lin(%id) != 1)) {
    if ($vcmp.ip(%name) == $readini(vcmp.admin.ini,IPS,%name)) {
      vcmp.say $iif($vcmp.level(%id) == 0,Member,$iif($vcmp.level(%id) == 1,Registered Player,Administrator)) %name Auto-Logged In (Admin Level: $vcmp.level(%id) $+ )
      vcmp.msg %id You Auto Logged In - Nick-Name: %name $+ , Admin Level: $vcmp.level(%id) $+ , Status: $iif($vcmp.level(%id) == 0,Member,$iif($vcmp.level(%id) == 1,Registered Player,Administrator))
      vcmp.timer.login %name off
      !writeini -n vcmp.admin.ini LIN %name 1
      !writeini -n vcmp.admin.ini IPS %name $vcmp.ip(%name)
    }
    else {
      vcmp.announce %id PLEASE LOGIN TO THIS NICK-NAME
      vcmp.msg %id You Must Login to this Nick-Name! Type: /c login <password>
      vcmp.sethp %id 0
    }
  }
  vcmp.add.spawns $vcmp.getid($1) 1

  ;!writeini -n vcmp.cheat.ini CHECK $1 0
  vcmp.msg %id Spawned
}
It works ??? ??? ???
Why?

12
mIRC/pawn Scripting / Problem with /c goto etc.
« on: August 12, 2008, 05:58:06 pm »
I have a problem.
I want to convert !goto <id/name> to /c goto <id/name>
but when i use this, it doesnt work :-[ :-[
Code: [Select]
  elseif ($2 == goto) {
    if ($vcmp.cmdcheck(!goto,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name>
    elseif (%a == -1) vcmp.msg %id Error - Absent ID/Name
    elseif (%a == $vcmp.getid(%name)) vcmp.msg %id Error - Cannot $2 to Yourself
    elseif ($vcmp.cost(%b) > $vcmp.cash(%b)) vcmp.msg %id Error - You need atleast $ $+ $bytes($vcmp.cost(%b),b) to use this command
    else {
      vcmp.cash- %b $vcmp.cost(%b)
      vcmp.goto %b %a
      vcmp.cmdsay $2 %id Goto - Taking: %name $+ , To: $vcmp.name(%a) $+ , Cost: $ $+ $bytes($vcmp.cost(%b),b)
    }
  }
I have the same problem with: Ban, Kick, Warn and Subalias  :-[
Code: [Select]
elseif ($2 == ban) {
    if ($vcmp.cmdcheck(!ban,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name> <reason>
    elseif (%a == -1) vcmp.msg %id Error - Invalid ID/Name
    elseif (%a == $vcmp.getid(%name)) vcmp.msg %id Error - Cannot $2 Yourself
    elseif ($vcmp.level(%a) >= $vcmp.level($vcmp.getid(%name))) vcmp.msg %id Error - Cannot $2 a player with the same or higher Level
    else {
      vcmp.cmdsay $2 %id Banning $vcmp.name($vcmp.getid($3)) - By Admin: %name $+ , Reason: $iif($4,$v1,None)
      vcmp.ban $vcmp.getid($3)
    }
  }
  elseif ($2 == kick) {
    if ($vcmp.cmdcheck(!kick,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name> <reason>
    elseif (%a == -1) vcmp.msg %id Error - Invalid ID/Name
    elseif (%a == $vcmp.getid(%name)) vcmp.msg %id Error - Cannot $2 Yourself
    elseif ($vcmp.level(%a) >= $vcmp.level($vcmp.getid(%name))) vcmp.msg %id Error - Cannot $2 a player with the same or higher Level
    else {
      vcmp.cmdsay $2 %id Kicking $vcmp.name($vcmp.getid($3)) - By Admin: %name $+ , Reason: $iif($4,$v1,None)
      vcmp.kick $vcmp.getid($3)
    }
  }
  elseif ($2 == warn) {
    if ($vcmp.cmdcheck(!warn,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name> <reason>
    elseif (%a == -1) vcmp.msg %id Error - Invalid ID/Name
    elseif (%a == $vcmp.getid(%name)) vcmp.msg %id Error - Cannot $2 Yourself
    elseif ($vcmp.level(%a) >= $vcmp.level($vcmp.getid(%name))) vcmp.msg %id Error - Cannot $2 a player with the same or higher Level
    else {
      vcmp.warn $vcmp.getid($3) %name $4-
    }
  }
  elseif ($2 == goto) {
    if ($vcmp.cmdcheck(!goto,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name>
    elseif (%a == -1) vcmp.msg %id Error - Absent ID/Name
    elseif (%a == $vcmp.getid(%name)) vcmp.msg %id Error - Cannot $2 to Yourself
    elseif ($vcmp.cost(%b) > $vcmp.cash(%b)) vcmp.msg %id Error - You need atleast $ $+ $bytes($vcmp.cost(%b),b) to use this command
    else {
      vcmp.cash- %b $vcmp.cost(%b)
      vcmp.goto %b %a
      vcmp.cmdsay $2 %id Goto - Taking: %name $+ , To: $vcmp.name(%a) $+ , Cost: $ $+ $bytes($vcmp.cost(%b),b)
    }
  }
  elseif ($2 == subalias) {
    if ($vcmp.cmdcheck(!subalias,%id) == fail) !halt
    elseif ($vcmp.getid($3) == -1) {
      if (!$vcmp.alias($3)) vcmp.msg %id Error - Could Not Find Sub-Alias Under " $+ $3 $+ " $+ , $2 <name/ip>
      else vcmp.cmdsay $2 %id $3 $+ 's Sub-Alias - Names: $vcmp.alias($3)
    }
    elseif (!$vcmp.alias($gettok($vcmp.ip($vcmp.name($vcmp.getid($3))),1-2,46))) vcmp.msg %id Error - $vcmp.name($vcmp.getid($3)) does not have a Sub-Alias
    else vcmp.cmdsay $2 %id $vcmp.name(%a) $+ 's Sub-Alias - Names: $vcmp.alias($gettok($vcmp.ip($vcmp.name(%a)),1-2,46))
  }

Plz can someone help me ???

13
mIRC/pawn Scripting / /writeini: insufficient parameters
« on: July 22, 2008, 08:40:11 pm »
I have this line:
Code: [Select]
!writeini -n vcmp.warns.ini WARNS $vcmp.hgetname($1) 0but when i run it, my mIRC says: /writeini: insufficient parameters (line 97, rcon.mrc) ???  :'(

What's wrong with it? and how can i fix it?

14
mIRC/pawn Scripting / Freeze
« on: July 20, 2008, 09:22:04 pm »
Does someone know how i can make a command like freeze, if i type !freeze <player> the player cant move anymore, untill i type !unfreeze <player>.
How do i start ???

15
mIRC/pawn Scripting / Config: Playerpos, Campos and Camlook
« on: July 09, 2008, 11:15:32 pm »
How do i know the X Y Z  of Playerpos, Campos and Camlook. Build mode?????
Or maby a tool?
Plz does someone knows?

Pages: [1] 2