• Welcome to Vice City Multiplayer.
 
Menu

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.

Show posts Menu

Topics - Chezor

#1
elseif ($3 == corner1) {
    if ($vcmp.cmdcheck(!corner1,%id) == fail) !halt
    else {
      !writeini -n vc-mp/vcmp.myarea.ini AREA x1 $round($vcmp.location($1,%id).x,3)
      !writeini -n vc-mp/vcmp.myarea.ini AREA y1 $round($vcmp.location($1,%id).y,3)
      !writeini -n vc-mp/vcmp.myarea.ini AREA z1 $round($vcmp.location($1,%id).z,3)
      !writeini -n vc-mp/vcmp.myarea.ini C1 $vcmp.name($1,%id) yes
      vcmp.msg $1 %id Corner 1 saved
    }
  }
  elseif ($3 == corner2) {
    var %c1 = $readini(vc-mp/vcmp.myarea.ini,C1,$vcmp.name($1,%id))
    if ($vcmp.cmdcheck(!corner2,%id) == fail) !halt
    elseif (%c1 != yes) vcmp.msg $1 %id Corner1 is not saved.
    else {
      !writeini -n vc-mp/vcmp.myarea.ini AREA x2 $round($vcmp.location($1,%id).x,3)
      !writeini -n vc-mp/vcmp.myarea.ini AREA y2 $round($vcmp.location($1,%id).y,3)
      !writeini -n vc-mp/vcmp.myarea.ini AREA z2 $round($vcmp.location($1,%id).z,3)
      !writeini -n vc-mp/vcmp.myarea.ini C2 $vcmp.name($1,%id) yes
      vcmp.msg $1 %id Corner 2 saved
    }
  }
  elseif ($3 == setarea) {
    var %x1 = $readini(vc-mp/vcmp.myarea.ini,AREA,x1)
    var %y1 = $readini(vc-mp/vcmp.myarea.ini,AREA,y1)
    var %z1 = $readini(vc-mp/vcmp.myarea.ini,AREA,z1)
    var %x2 = $readini(vc-mp/vcmp.myarea.ini,AREA,x2)
    var %y2 = $readini(vc-mp/vcmp.myarea.ini,AREA,y2)
    var %z2 = $readini(vc-mp/vcmp.myarea.ini,AREA,z2)
    var %c1 = $readini(vc-mp/vcmp.myarea.ini,C1,$vcmp.name($1,%id))
    var %c2 = $readini(vc-mp/vcmp.myarea.ini,C2,$vcmp.name($1,%id))
    if ($vcmp.cmdcheck(!createarea,%id) == fail) !halt
    elseif (!$4) vcmp.msg $1 %id Please enter name for your new Area
    elseif (%c1 != yes) vcmp.msg $1 %id Corner1 is not saved.
    elseif (%c2 != yes) vcmp.msg $1 %id Corner2 is not saved.
    else {
      !writeini -n vc-mp/vcmp.myarea.ini SETAREA %x1 $+ , $+ %y2 $+ , $+ %x2 $+ , $+ %y2 $+ , $+ %x2 $+ , $+ %y1 $+ , $+ %x1 $+ , $+ %y1 $4-
      !remini -n vc-mp/vcmp.myarea.ini AREA x1
      !remini -n vc-mp/vcmp.myarea.ini AREA y1
      !remini -n vc-mp/vcmp.myarea.ini AREA z1
      !remini -n vc-mp/vcmp.myarea.ini C1 $vcmp.name($1,%id)
      !remini -n vc-mp/vcmp.myarea.ini AREA x2
      !remini -n vc-mp/vcmp.myarea.ini AREA y2
      !remini -n vc-mp/vcmp.myarea.ini AREA z2
      !remini -n vc-mp/vcmp.myarea.ini C2 $vcmp.name($1,%id)
      vcmp.msg $1 %id New Area Created: $4-
    }
  }
  elseif ($3 == clearareaini) {
    if ($vcmp.cmdcheck(!clearareafile,%id) == fail) !halt
    else {
      !remini -n vc-mp/vcmp.myarea.ini AREA x1
      !remini -n vc-mp/vcmp.myarea.ini AREA y1
      !remini -n vc-mp/vcmp.myarea.ini AREA z1
      !remini -n vc-mp/vcmp.myarea.ini C1 $vcmp.name($1,%id)
      !remini -n vc-mp/vcmp.myarea.ini AREA x2
      !remini -n vc-mp/vcmp.myarea.ini AREA y2
      !remini -n vc-mp/vcmp.myarea.ini AREA z2
      !remini -n vc-mp/vcmp.myarea.ini C2 $vcmp.name($1,%id)
      vcmp.msg $1 %id Your area file cleared.
    }
  }


  This is script for scripting a name for a particular area.  But only 1 person can use it at a time. Suppose you have to name a area of house with square shape. Then just go at one corner of house and type /c corner1 and then go to opposite corner of the house and type /c corner2 and then type /c setarea <nameofarea>. Your area is created. Its in vc-mp/vcmp.myarea.ini
  Now copy your area line and paste it in vcmp.data.ini at the top of other areas. and restart mirc. done!
  And if the area script gets bugged just type /c clearareaini

Chezor...
#2
    Hello this is a request to vcmp forum administrator to turn on the "Go up" and "Go down" buttons on topics and boards. Which will help the members a lot. And it will become easy to scroll through the pages. Thankyou.

Signed Chezor
#3
Script Showroom / Counter-Strike Script [2-cmd/only]
October 14, 2008, 09:43:17 AM
As requested by 'punjabi_goli' i made 2 commands for him. !plantbomb and !defusebomb. He said that he will get the skin commands done himself and restart round commands etc...so heres the script with 2 cmds. note: not tested. based on general use scripts by tommis. I have made this type of script first time so maybe minor bugs in it.



;_____________________________________
;
;---(GUS)---Counter-Strike-(v1)-------
;------------by-(Chezor)--------------
;_____________________________________


;------PlaceBomb------

elseif ($2 == !placebomb) {
  if ($vcmp.skin(%name) != terrorist) vcmp.msg %id Error - Only terrorists can use this command
  elseif (bombsite !isin $vcmp.area(%id)) vcmp.msg %id Error - You are not at any bombsite
  elseif ($vcmp.bomb(%name) != 1) vcmp.msg %id Error - You do not have the C4..
  else {
    vcmp.say %name has planted the bomb at $vcmp.area(%id)
    !writeini -n vcmp.bomb.ini PLANTED check yes
    .timer 1 1 /vcmp.bombplantannounce %id %name
    .timer 1 120 /vcmp.blastit %id %name
  }
}

;------DefuseBomb-----

elseif ($2 == !defusebomb) {
  if ($vcmp.skin(%name) != counter-terrorist) vcmp.msg %id Error - Only CT can use this command
  elseif ($readini(vcmp.bomb.ini,PLANTED,check) != yes) vcmp.msg %id Error - Bomb isnt planted!
  elseif (bombsite !isin $vcmp.area(%id)) vcmp.msg %id Error - you are not at bombsite!
  elseif ($readini(vcmp.bomb.ini,DEFUSING,defusing) == yes) vcmp.msg %id Bomb is already being defused!
  else {
    .timer 1 1 !writeini -n vcmp.bomb.ini DEFUSING defusing yes
    .timer 1 1 $iif(bombsite isin $vcmp.area(%id)) vcmp.msg %id Defusing 10 $+ %
    .timer 1 3 $iif(bombsite isin $vcmp.area(%id)) vcmp.msg %id Defusing 20 $+ %
    .timer 1 6 $iif(bombsite isin $vcmp.area(%id)) vcmp.msg %id Defusing 30 $+ %
    .timer 1 9 $iif(bombsite isin $vcmp.area(%id)) vcmp.msg %id Defusing 40 $+ %
    .timer 1 12 $iif(bombsite isin $vcmp.area(%id)) vcmp.msg %id Defusing 50 $+ %
    .timer 1 15 $iif(bombsite isin $vcmp.area(%id)) vcmp.msg %id Defusing 60 $+ %
    .timer 1 18 $iif(bombsite isin $vcmp.area(%id)) vcmp.msg %id Defusing 70 $+ %
    .timer 1 21 $iif(bombsite isin $vcmp.area(%id)) vcmp.msg %id Defusing 80 $+ %
    .timer 1 24 $iif(bombsite isin $vcmp.area(%id)) vcmp.msg %id Defusing 90 $+ %
    .timer 1 27 $iif(bombsite isin $vcmp.area(%id)) !writeini -n vcmp.bomb.ini DEFUSE defused yes
    .timer 1 27 $iif(bombsite isin $vcmp.area(%id)) vcmp.msg %id Defusing 100 $+ %
    .timer 1 27 $iif(bombsite isin $vcmp.area(%id)) vcmp.say Bomb has been defused!!
  }
}

;------Aliases-------

alias vcmp.bombplantannounce {
  var %a = 0
  while (%a <= 20) {
    if ($readini(vcmp.bomb.ini,PLANTED,check) == yes) vcmp.announce %a BOMB HAS BEEN PLANTED
    !inc %a
  }
}

alias vcmp.blastit {
  var %a = 0
  while (%a <= 20) {
    if ($readini(vcmp.bomb.ini,DEFUSE,defused) != yes) {
      if (bombsite isin $vcmp.area(%a)) {
        vcmp.sethp %a 0
        vcmp.announce %a TERRORIST WIN
      }
    }
    !inc %a
  }
}


Intructions:
1] Rename the desired bombsite area in vcmp.data.ini to bombsite
2] put the code in general use script, in proper places..

Regards,
Chezor
#4
mIRC/pawn Scripting / Passenger script - GUS
October 02, 2008, 05:04:03 PM
Hi guys, i would like to know how passenger can be detected in vcmp. Windlord gave me idea in server but i forgot what he said actually :P
so if anyone could give a tip, i would appreciate  :)
#5
Videos and Screenshots / GameSparks RPG - HipHop Police
September 25, 2008, 10:51:19 AM
http://www.youtube.com/watch?v=-MIb48gRdwk
The Cop-Work Video in GameSparks RPG
#6
Videos and Screenshots / GameSparks RPG Vids
September 25, 2008, 10:49:07 AM
Introduction
http://www.youtube.com/watch?v=xhAj7ZLUB5Q

The introduction video to GameSparks RPG. You can see various earning methods in there. But now more earning scripts are added.

Signed,
GameSparks Owner.
#7
mIRC/pawn Scripting / Basic Tutorial [Maybe helpful]
September 23, 2008, 08:24:54 PM
Well after looking at poor beginners, i feel to share some basic knowledge. Im not good at explaining things but i really feel bad for beginners.. so a beginner tutorial wud be nice for them. So heres it, i would like to post..

Creating Alias

1] normal alias

alias vcmp.version !return v1.0
alias vcmp.<aliasname> !return <msg to return>

2] readini alias

alias vcmp.cash !return $iif($readini(vcmp.cash.ini,CASH,$vcmp.name($1)),$v1,0)
alias vcmp.<aliasname> !return $iif($readini(<filename>,<section-in-file>,$vcmp.name($1)),$v1,<else-to-return-if-readini=nothing>)



Commands

on *:SIGNAL:vcmp.command:{

if ($2 == !test) {
vcmp.say Testing Completed
}

elseif ($2 == !hello) || ($2 == !pmhello) {
vcmp.cmdsay $2 %id Hello Everyone
}

elseif ($2 == !test2) {
vcmp.msg %id Test 2 completed
}

else vcmp.msg %id Invalid Command.
}



Now in the commands give above:

Chezor: !test
Testing Completed
Chezor: !hello
Hello Everyone
Chezor: !pmhello
pm >> Hello Everyone
Chezor: !test2
pm >> Test 2 Completed
Chezor: !blablabla
pm >> Invalid Command.



A fill in the blank for beginner :P

elseif ($2 == !<command>) {
vcmp.say <Type here what it will message when command is typed>
}



Some Info

$1 == Server
$2 == Command
$3 == Word after command. Example: !command word.
$4 == Word after word. Example: !command word word2.
and so on


Working with INI

!writeini -n <filename> <SECTION> %name yes
for example !writeini -n vcmp.test.ini TEST %name yes
it will create file vcmp.test.ini
[TEST]
Chezor=yes

!remini -n <filename> <SECTION> %name
it will remove the name from file..
[TEST]



Extras

>= Greater than or equal to
<= Less than or equal to
== Equal to
!=  Does not equal to
<  Less than
>  Greater than

#8
General Discussion / Need Administrators :]
September 15, 2008, 02:14:32 PM
GameSparks RPG


I have hosted a new server, named 'GameSparks RPG'. With some help from my mates, Janicch & Thijn. The server is hosted on x-serverz. Currently we need administrators who can be on for most of the time, and are good, calm and patient in administrative work.



Server rules:
No Deathmatching, No revenge-kill, No Spamming, No cheats, mods, hacks, Not to Abuse any command, Not to flame or insult any player. And not to swear.

-------------------------------

v0.1 Commands [1st release may have some bugs]

Commands Help
!commands
!generalcmd
!accountcmd
!carcmd
!propcmd
!localcmd
!skincmd
!bankcmd
!earncmd
!wepcmd
!moneycmd

-------------------------------

Accountcmd
Autologin feature enabled for static IP players.
/c register <password> - without '<' and '>' signs. Registers your name on server.
/c login <password> - without '<' and '>' signs. logins you to server.
/c logout - logs you out of server.

-------------------------------

Generalcmd

!hp - displays ur hp
!id - displays ur id
!heal - heals yourself - works only at hospital
!scripts/!info - shows scripters and version
!date - shows fulldate
!area/!loc - shows area or location
!dist - shows distance between 2 players
!speed - shows your speed of moving..
!taxi - pms to all players with taxi skin for taxi..
!911 - pms to all Law-Workers for help..
!server - shows server info
!english - shows msg to all players telling them to speak english..
!admins - shows online admins

-------------------------------

Localcmd

/c local <message> or /c l = pms to players near to you at 20 distance. - local chat.
/c shout <message> or /c s = pms to all players near to you at 20 distance - local chat

-------------------------------

and many more cmd are there.. u can try them in server..

I need administrators..if u think u can be admin then post in this topic with application form (filled)..

Nick Ingame:
Age:
How much time u can be online:
Any administration experience in other servers:
Why u want to be admin:

#9
General Discussion / Need Players n Scripters
September 10, 2008, 05:53:15 PM
Me and my friends are making a project of RPG Server.
I have scripted all basic things in server.
Just remaining things are : 1] Adding more props in buyprop script, 2] Adding more cars in buycar script, 3] Other necessary add-ons

I need some financial help, I need a person who can get paid hosting server which can be on 24/7. Windows server not linux.
And i need some scripters, so that with more scripters, scripts work will be done quickly.
or any server hosting 24/7 help from any good person would be also fine..

If you can help me, then please contact me:
MSN: [email protected]
YahooId: thedeaglez

Vcmp scripter,
Chezor
#10
mIRC/pawn Scripting / Script Vcmp.data - Area
September 08, 2008, 06:42:33 AM
If i want a particular sqaure to be named as some property name, then how can i add it. Like when i type !area it shows the area in which im standing at. so how to make like that.

like if i want to make any part of land to be named as per my wish.
I tried co-ordinates but i dunno what to put there actually..

Example:
-213.73,1243.47,163.656,1243.47,163.656,797.605,-213.73,797.605=Prawn-Island
-213.73,797.605,163.656,797.605,163.656,-241.429,-213.73,-241.429=Leaf Links

what are those co-ordinates above ?  x y and z or ?
example: if i want to put area name to a heli-pad as landing spot (just example). which co-ordinates i should put ? The co-ords of corners ? please answer
#11
Support / Some issue
September 07, 2008, 09:34:46 AM
My mate have bought linux hosting from serverffs
And i m scripting mIRC..
some people say mIRC doesnt work on linux..
now how to script linux..servers. thats my question
#12
mIRC/pawn Scripting / Distance-PM
September 06, 2008, 05:45:16 PM
I need help with scripting the following:
If i want to script.

Chezor: /c eat
All others who are near me by distance 5, will only get a PM. Suppose 1 and 2 are players. Then 1 is standing close to my by distance 5 and 2 is standing away from me. So 1 will only get the pm saying i m eating food. And 2 will not get the pm.
PM to 1: Chezor is eating food

got it ?.. but i dont know how to make it. I tried several times...


#13
Support / Server doesnt show up
September 04, 2008, 10:43:22 AM
server doesnt show up in internet tab ?? .. any solution ?
#14
mIRC/pawn Scripting / !report - script help
September 03, 2008, 04:23:53 PM
If i type !report <name> <reason>
it should report to the admin online at the moment in the server. [ the admin which will be shown when we type !admin cmd ]

like
!report chezor rulebreaking
pm to chezor: thankyou for your report.
pm to all admins: reported: chezor, reason: rulebreaking.

i need some help in pming the admin present online ! im trying but i cudnt script this.. give some help.. im learning through GUS so help according to aliases in GUS..




elseif ($2 == !report) || (!rport) {
    if ($vcmp.cmdcheck(!report,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Absent ID/Name
elseif (!$4) vcmp.msg %id Absent reason, Syntax: !report <name> <reason>
else {
vcmp.msg %id You sent report to admins, Thanks for your support.



and further there in above script i need is that.. it should sent pm to admin present online..
#15
mIRC/pawn Scripting / Time Scripts
September 03, 2008, 04:14:58 PM
Suppose i want a countdown of 1 hour. which will be repeated constantly after each countdown gets over. Like countdown of 10 secs is running constantly.
when i type. !ctime
it shows 10
when i type !ctime it shows 8 or 5 or the number which is being countdowned virtually in the script.

so actually i have seen mta argonath script which has fish contest script.
so there 1 hour time is running for each contest.
people fish there and after 1 hour is finished the person with biggest fish gets money.
so how do i create a countdown of 1 hour which keeps repeating again and again after every hour.

2] suppose everyone are fishing [ i can create fish script using $rand technique ]
if some person gets fish weighted 20kg
the other gets 19kg
and third gets 15kg
how can the person be given reward of cash after the particular countdown hour is over ?
its some complicated script but i need some help, and i know you there are the best scriptors.
#16
mIRC/pawn Scripting / GUS problem with account script.
September 03, 2008, 12:46:09 PM
hmm problem is that
i can:  /c register password
it says: You have registered with name: Chezor and password: password.
/q

then if i leave server and join again, i try to login
/c login password
it says: This name is not registered.

then if i minimize game and click connect on GUS connection dialog box. It reconnects the script. Then i go maximize the minimized game and type /c login password.
At that time it logs me in !
so whats the problem ?
#17
mIRC/pawn Scripting / Random Selection
September 02, 2008, 08:02:21 PM
I want to create a job script, for RPG server. Suppose if i want to make import/export job script. [example]

Like people sit in any car, they type !transport. When they type it they will be given randomly selected place like little havana, docks, lighthouse etc.
How to make a script which randomly selects any option which i script.

just as !search coin
options:
you found a gold coin
you found silver coin
you found nothing

Anything will be directly chosen from that. Please explain in detail, im not expert you can understand because you know how hard it was when you were beginner. :]
#18
mIRC/pawn Scripting / Scripting Help :]
March 15, 2008, 06:54:32 PM
Quote from: matthiasvegh on July 26, 2007, 07:04:06 PM

lets start with a basic script every tutorial starts with.
You want the server to say "Hello World!"
but you want it to be a bit more complex, you want the server to say this, when a player says !hello
we now need to decide, wether we want "Hello world" to be public, or just the player who said this can see it.

place this code into your script some where near line 1194 (it doesnt really matter, but near the !info command is a good place to put it)
elseif ($2 == !hello) || ($2 == !pmhello) {
vcmp.msg $2 %id Hello World!
}


ok. that was our first code. now, the part vcmp.msg is the actual "what to do" thing in the script. $2 %id specifies who to send the message to. Hello world, is the parameter on the actual action. therefore, irc has to send a message, defined in parameters.
if we want the "Hello world!" to be public, replace vcmp.msg with vcmp.say

If we want to check weather player has the right to see "hello world", place an IF before the vcmp.msg:
elseif ($2 == !hello) || ($2 == !pmhello) {
if ($vcmp.cmdcheck(!hello,%id) == fail) !halt
else vcmp.msg $2 %id Hello World!
}

now, the if line, does the following
checks if the value after !hello in vcmp.cmdlevel.ini is larger than the players admin level. if it is larger it goes to !halt. if smaller, it ignores !halt and does the next line, which is hello world
!halt, is a storno, but im not sure, if it gives an error message or not.

btw, due to the error (not sure if its an error)
i would like to clear the alias's

well im new to vcmp scripting so i was just searching for tutorials also googling for tutorils. but i found none tutorials. also i found that if i want to learn scripting i have to read the script made by others and understand it. so i have learned something.

well i found that topic of tutorial from matthiasvegh :
So i can also say that the hello command is wrong its actually :

elseif ($2 == !hello) || ($2 == !pmhello) {
vcmp.msg %id Hello World!
}


I have modified many things in GUS and now i know how to change the script.
I added various commands like

weather commands : !rain, !clear, !fog, !eclipse, !storm, etc

and the settime command in gus was not working for me ( i also modified it and now it works)
: !settime, !morning, !noon, !evening, !midnite




now i need to know is : how to make !time command so that it shows current time shown in top right corner of the game !

Also i want to know how to make a command like !gotohideout <locname> so only admin lvl 1 can go to that location. and no other player can go to that location.
same as !gotoloc command but i want gotoloc for all ppl and gotohideout commands only for admins. help me with it.

Also i need help with buying cars. if u guys dont wana give script for buying cars at least give me the idea how to make it or explain me.
#19
mIRC/pawn Scripting / Need Scripting Tutorial
March 13, 2008, 02:15:33 PM
Im new to all this vcmp scripting can i have a tutorial. Or is there anyone on this forum who can teach me ?