• 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

Messages - Tonys

#16
Quote from: Jancis_LV on February 04, 2010, 04:13:10 PM
Quote from: Tonys on February 04, 2010, 02:17:47 PM
Quote from: Jancis_LV on February 04, 2010, 08:22:39 AM
Could someone name other cars that often crashes?
I heard something about Cuban Hermes too. And about how much different cars i can add?

Rhino - Crashes just before spawn screen
Hotring & Bloodring - Same as Rhino

Also having too many of the same vehicles in one spot can cause crashes aswell I noticed this particuarly with the SWAT Vehicles.

Bloodring and Hotring for me do not crashed. And bloodring is even in default car locations.

Does for me when I created my own car spawns I only added one outside the stadium and it crashed at the spawn screen when it was removed all worked fine.
#17
Quote from: Jancis_LV on February 04, 2010, 08:22:39 AM
Could someone name other cars that often crashes?
I heard something about Cuban Hermes too. And about how much different cars i can add?

Rhino - Crashes just before spawn screen
Hotring & Bloodring - Same as Rhino

Also having too many of the same vehicles in one spot can cause crashes aswell I noticed this particuarly with the SWAT Vehicles.
#18
mIRC/pawn Scripting / Question
January 15, 2010, 07:23:26 AM
Ok so uh how do you create commands in pawn using /c !commandhere and not just !commandhere.
#19
mIRC/pawn Scripting / Re: CreateVehicle issue
January 12, 2010, 06:30:22 AM
AddStaticVehicle instead of CreateVehicle, you could always try that.
#20
I'm getting this error when compiling my anti-minigun FS.

C:\Users\eee\Desktop\VCMP [PAWN]\filterscripts\antiminigun.pwn(18) : warning 202: number of arguments does not match definition
C:\Users\eee\Desktop\VCMP [PAWN]\filterscripts\antiminigun.pwn(18) : warning 202: number of arguments does not match definition


Here is the line that it's refering too -

weaponchecktimer = SetTimer("WeaponCheckTimer", 5000, 1,"i",i);

Rest of the OnFilterScriptInit -
public OnFilterScriptInit()
{
print("| ****** Anti-Minigun ******|");
print("| *** Created By:  Tonys ***|");
print("|***************************|");
       for(new i; i<MAX_PLAYERS; i++)
{
weaponchecktimer = SetTimer("WeaponCheckTimer", 5000, 1,"i",i);
return 1;
}
return 1;
}


Any help greatly appreciated.
First time using pawn..
#21
To make Property System work... replace commands in script with these one's

 elseif ($3 == buyprop) {
   if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must be logged in.
   elseif (!$4) vcmp.msg $1 $2 Syntax: ! $+ $3 <Place ID>
   elseif ($4 !isnum) vcmp.msg $1 $2 Invalid Place ID
   elseif ($4 > $fbs.propcount) vcmp.msg $1 $2 Invalid Place ID
   elseif (. isin $4) || (, isin $4) || (- isin $4) vcmp.msg $1 $2 No negative or decimal place id's
   elseif ($FBS.PropPrice($4) > $FBS.actcash($1, $2)) vcmp.msg $1 $2 You do not have enough cash to buy this property
   elseif ($FBS.PropDistance($2, $4) > 10) vcmp.msg $1 $2 You must be closer to the property
   elseif ($FBS.PropOwner($4) != Vice City) vcmp.msg $1 $2 This property is already owned by $FBS.PropOwner($4)
   elseif ($FBS.Myprops($1, $2) >= 2) vcmp.msg $1 $2 You have reached your property limit.
   else {
     vcmp.say $1 ** $vcmp.name($1, $2) has bought Property - $FBS.PropName($4) (ID: $4 $+ )
     vcmp.msg $1 $2 Property Cost: $ $+ $FBS.PropPrice($4)
     FBS.DecCash $1 $2 $FBS.PropPrice($4)
     !remini -n FBS.propowners.ini OWNERS $4
     !writeini -n FBS.propowners.ini OWNERS $4 $vcmp.name($1, $2)
     FBS.IncMyprops $1 $2 1
   }
 }
 elseif ($3 == sellprop) {
   if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must be logged in.
   elseif (!$4) vcmp.msg $1 $2 Syntax: ! $+ $3 <Place ID>
   elseif ($4 !isnum) vcmp.msg $1 $2 Invalid Place ID
   elseif ($4 > $fbs.propcount) vcmp.msg $1 $2 Invalid Place ID
   elseif ($FBS.PropDistance($2, $4) > 10) vcmp.msg $1 $2 You must be closer to the property
   elseif (. isin $4) || (, isin $4) || (- isin $4) vcmp.msg $1 $2 No negative or decimal place id's
   elseif ($FBS.PropOwner($4) != $vcmp.name($1, $2)) vcmp.msg $1 $2 You do not own this property
   elseif ($FBS.SpawnSetting($5) == on) vcmp.msg $1 $2 You need to turn off property spawning first
   else {
     vcmp.say $1 ** $vcmp.name($1, $2) has sold Property - $FBS.PropName($4) (ID: $4 $+ )
     vcmp.msg $1 $2 Selling Price: $ $+ $FBS.Propprice($4)
     FBS.IncCash $1 $2 $FBS.PropPrice($4)
     !remini -n FBS.PropSpawn.ini SPAWN $FBS.PropShares($4)
     !remini -n FBS.PropSpawn.ini STATUS $FBS.PropShares($4)
     !remini -n FBS.propowners.ini OWNERS $4
     !remini -n FBS.PropSpawn.ini SPAWN $vcmp.name($1, $2)
     !remini -n FBS.PropSpawn.ini STATUS $vcmp.name($1, $2)
     !writeini -n FBS.propowners.ini OWNERS $4 Vice City
     FBS.DecMyProps $1 $2 1
   }
 }
 elseif ($3 == addplace) {
   if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must be logged in.
   elseif ($FBS.Level($1, $2) < 3) vcmp.msg $1 $2 Must be level 3.
   elseif (!$4) vcmp.msg $1 $2 Syntax: ! $+ $3 <Cost> <Name>
   elseif (!$5) vcmp.msg $1 $2 Syntax: ! $+ $3 <Cost> <Name>
   elseif ($4 !isnum) vcmp.msg $1 $2 Invalid Property Cost
   elseif (. isin $4) || (, isin $4) || (- isin $4) vcmp.msg $1 $2 No negative or decimal Property Cost
   else {
     vcmp.msg $1 $2 Property Added - Price: $ $+ $4 - Name: $5-
     !writeini -n FBS.PropCount.ini COUNT Count $calc($FBS.PropCount + 1)
     !writeini -n FBS.PropOwners.ini OWNERS $FBS.PropCount Vice City
     !writeini -n FBS.PropNames.ini NAMES $FBS.PropCount $5-
     !writeini -n FBS.PropCosts.ini COSTS $FBS.PropCount $4
     !writeini -n FBS.PropLocs.ini x $FBS.PropCount $vcmp.location($1, $2).x
     !writeini -n FBS.PropLocs.ini y $FBS.PropCount $vcmp.location($1, $2).y
     !writeini -n FBS.PropLocs.ini z $FBS.PropCount $vcmp.location($1, $2).z
     !writeini -n FBS.PropSpawn.ini LOCATION $FBS.PropCount $calc($vcmp.location($1, $2).x - 2) $calc($vcmp.location($1, $2).y + 2) $vcmp.location($1, $2).z
     FBS.LoadProps $1
   }
 }


Then replace all property aliases with these one..

alias FBS.PropCount !return $iif($readini(FBS.PropCount.ini,COUNT,Count),$v1,0)
alias FBS.PropPrice !return $iif($readini(FBS.PropCosts.ini,COSTS,$1),$v1,100000)
alias FBS.PropOwner !return $iif($readini(FBS.PropOwners.ini,OWNERS,$1),$v1,Vice City)
alias FBS.PropShares !return $iif($readini(FBS.PropOwners.ini,SHARES,$1),$v1,None)
alias FBS.PropName !return $iif($readini(FBS.PropNames.ini,NAMES,$1),$v1,Unknown)
alias FBS.Mypropshares !return $iif($readini(FBS.MyProps.ini,SCOUNT,$vcmp.name($1, $2)),$v1,0)
alias FBS.PropLoc !return $iif($readini(FBS.PropLocs.ini,LOCATIONS,$1),$v1,Unknown)
alias FBS.IncMyProps !writeini -n FBS.MyProps.ini COUNT $vcmp.name($1, $2) $calc($FBS.MyProps($1, $2) + $iif($3,$v1,0))
alias FBS.DecMyProps !writeini -n FBS.MyProps.ini COUNT $vcmp.name($1, $2) $calc($FBS.MyProps($1, $2) - $iif($3,$v1,0))
alias FBS.MyProps !return $iif($readini(FBS.MyProps.ini,COUNT,$vcmp.name($1, $2)),$v1,0)
alias FBS.SpawnSetting !return $iif($readini(FBS.PropSpawn.ini,STATUS,$vcmp.name($1, $2)),$v1,0ff)
alias FBS.LoadProps {
 var %a = 1
 set %propcount 0

 while (%a <= 100) {
   if (%a <= $FBS.PropCount) {
     vcmp.newpickup 1 407 $readini(FBS.PropLocs.ini,x,%a) $readini(FBS.PropLocs.ini,y,%a) $readini(FBS.PropLocs.ini,z,%a)
     !inc %propcount
   }
   !inc %a
 }
 timer.checkproperties 1 8 FBS.CheckCount
}
alias FBS.getmysharedprops {
 var %a = 1
 while (%a <= %propcount) {
   if ($readini(FBS.PropOwners.ini,SHARES,%a) == $vcmp.name($1, $2)) var %b = %b $readini(FBS.PropNames.ini,NAMES,%a) $+ , ID: %a -
   !inc %a
 }
 !return %b
}
alias FBS.CheckCount {
 if (%propcount == $FBS.PropCount) {
   FBS.Echo 7 $+ $chr(91) %propcount $+ / $+ $FBS.PropCount $chr(93) Properties Loaded Succesfully
 }
 else FBS.Echo 7Error loading Properties $chr(91) %propcount $+ / $+ $FBS.PropCount $chr(93)
}
alias FBS.PropInfo {
 var %a = 1
 while (%a <= 100) {
   if (%a == $1) {
     if ($FBS.PropOwner($1) == Vice City) {
       vcmp.msg 1 $2 **** FOR SALE ****
       vcmp.msg 1 $2 Property: $FBS.PropName($1) $+ ( $+ $1 $+ )
       vcmp.msg 1 $2 Owner: Vice City // Cost: $ $+ $FBS.PropPrice($1)
     }
     elseif ($FBS.PropOwner($1) != Vice City) && ($FBS.PropShares($1) != None) {
       vcmp.msg 1 $2 Property: $FBS.PropName($1) $+ ( $+ $1 $+ ) // Owner: $FBS.PropOwner($1) // Price: $ $+ $FBS.PropPrice($1)      
     }
     elseif ($FBS.PropOwner($1) != Vice City) && ($FBS.PropShares($1) == None) {
       vcmp.msg 1 $2 Property: $FBS.PropName($1) $+ ( $+ $1 $+ ) // Owner: $FBS.PropOwner($1) // Price: $ $+ $FBS.PropPrice($1)      
     }
     else vcmp.msg 1 $2 Property info can't be found!
   }
   !inc %a
 }
}



Oh and delete every pickup in your config file - this is a MUST.

It should now function properly only thing I haven't fixed yet is when scripts are disconnected then reconnected the Properties fuck up by moving up an ID and showing Unknown as the Name.  So uh.. don't restart your server/scripts and you won't come across this problem :P
#22
mIRC/pawn Scripting / Re: FBS Bugs..
October 27, 2009, 08:47:39 AM
Really easy to fix this bug suprised no one has noticed...

Just replace - FBS.checkprops with FBS.LoadProps $1
This can be found in the !addprop command and the !buyprop // !sellprop commands too.  The ID problem shall now be fixed, if it still occurs PM me and i'll send you a copy of what I've got.
#23
Script Showroom / Re: RPG Script
October 03, 2007, 04:32:10 AM
Ok so I load up mIRC and load the Admin panel right? (Using the Basic One btw).  Then i Load up the rpg script using (/load -rs vcmp.rpg.mrc) right? then i input my Server info on the Admin Panel and connect to it. Then i just go onto my server and make me admin then type /c rpg on and it should work? 

Or do i need the General Use scripts aswell?

Ste-by-step would be nice
#24
Support / Re: Pickup's
October 02, 2007, 12:16:05 PM
Thanks never thought of that i'll go give that a Try.
#25
Support / Pickup's
October 01, 2007, 06:40:07 PM
Is it possible to add in weapon and Health pickups in Build Mode? if not is there any other way.
#26
Thanks man
#27
After i spawn a Vehicle and get in it it doesn't move any reason why?