How to hit password in server
Code Select
config
maxplayers
port
hostname
rcon_password
rcon_max_users
rcon_port
gamemode0
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[code] else if (strcmp(cmd, "!buycar", true) == 0) {
tmp = strtok(cmdtext, idx);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if(!strlen(tmp)) SendClientMessage(playerid,COLOR_GREEN, "USAGE: !buycar [VehicleID]");
else if(!IsVehicleForSale(tmp)) SendClientMessage(playerid,COLOR_GREEN, "Error: That vehicle is not for sale!");
else if(strcmp(GetPlayerLocation(playerid), "Sunshine-Autos-Viceport-Vice-City-Mainland", true) == 1) SendClientMessage(playerid,COLOR_GREEN, "Error: You have to be at the Sunshine Autos!");
else {
new cost = GetVehicleCost(tmp);
if(GetPlayerHandCash(gPlayers[playerid]) < cost) {
SendClientMessage(playerid,COLOR_GREEN, "Error: Not enought money!");
return 1;
}
format(file, sizeof(file), "/Vehicles/owners.ini", "owners");
dini_Set(file, tmp, gPlayers[playerid]);
DecPlayerHandCash(playerid,cost);
format(szMsg,sizeof(szMsg),"Vehicle bought! Costed:[ $%d ]",cost);
SendClientMessage(playerid,COLOR_GREEN,szMsg);
}
return 1;
}
[/code]Quote}
elseif ($3 == addprop) {
if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in as Admin Level 10.
elseif ($FBS.Level($1, $2) < 10) vcmp.msg $1 $2 Error, You need to be at least level 10 to use this command.
elseif (!$4) vcmp.msg $1 $2 Error - Correct Syntax: ! $+ $3 <Cost> <Name>
elseif (!$5) vcmp.msg $1 $2 Error - Correct Syntax: ! $+ $3 <Cost> <Name>
elseif ($4 !isnum) vcmp.msg $1 $2 Error, Invalid Property Cost
elseif (. isin $4) || (, isin $4) || (- isin $4) vcmp.msg $1 $2 Error, 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
vcmp.newpickup $1 407 $calc($vcmp.location($1, $2).x + 2) $vcmp.location($1, $2).y $vcmp.location($1, $2).z
fbs.checkprops
}
}
Quote;------------ Property Aliases ---------------
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,100)
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, $1)),$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 Property Name:[ $FBS.PropName($1) $chr(93) ID:[ $1 $chr(93) Owner:[ Vice City $chr(93) Cost:[ $ $+ $FBS.PropPrice($1) $chr(93)
vcmp.msg 1 $2 Type !buyprop $1 to buy this property
}
elseif ($FBS.PropOwner($1) != Vice City) && ($FBS.PropShares($1) != None) {
vcmp.msg 1 $2 Property Name:[ $FBS.PropName($1) $chr(93) ID:[ $1 $chr(93) Owner:[ $FBS.PropOwner($1) $chr(93) Share:[ $FBS.PropShares($1) $chr(93) Selling Price:[ $ $+ $calc($FBS.PropPrice($1) / 2) $chr(93)
}
elseif ($FBS.PropOwner($1) != Vice City) && ($FBS.PropShares($1) == None) {
vcmp.msg 1 $2 Property Name:[ $FBS.PropName($1) $chr(93) ID:[ $1 $chr(93) Owner:[ $FBS.PropOwner($1) $chr(93) Selling Price:[ $ $+ $calc($FBS.PropPrice($1) / 2) $chr(93)
}
else vcmp.msg $1 $2 Error, No information can be found for this property
}
!inc %a
}
}
Quotecan some one help mt to fix this lms script for mirc when i do !lms it says lms is alerady in progress and when i do !join it says taking u too in lms but nothing happens here is code
}
elseif ($3 == lms) {
if (%lms == on) vcmp.say $1 ** LastManStanding already in progress!
else {
set %lms on
timer 1 1 vcmp.say $1 ** LastManStanding has started! Type !join within 20 seconds.
timer 1 20 set %lms off
}
}
elseif ($3 == join) {
if (%lms == on) vcmp.say $1 ** $vcmp.name($1, $2) has joined LastManStanding!
else {
vcmp.setlocation $1 $2 -754.187866 -1602.638916 23.734970
vcmp.setarmour $1 $vcmp.name($1, $2) 100
vcmp.sethealth $1 $vcmp.name($1, $2) 100
vcmp.msg $1 $2 Taking you to LastManStanding. Enjoy!
timer 1 1 vcmp.setcontrols $1 $vcmp.name($1, $2) 0
timer 1 2 vcmp.say $1 LastManStanding starting in:
timer 1 5 vcmp.say $1 ---- 1 ----
timer 1 6 vcmp.say $1 ---- 2 ----
timer 1 7 vcmp.say $1 ---- 3 ----
timer 1 8 vcmp.say $1 ---- GO! ----
timer 1 8 vcmp.setcontrols $1 $vcmp.name($1, $2) 1
}
else {
if (%lms == off) {
vcmp.say $1 ** LastManStanding is not active!
}
}