• 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 - Force

#21
mIRC/pawn Scripting / Lock Car for sansan
July 12, 2008, 02:49:12 PM
Hey,

Quick question, I was wondering whether or not there is a vcmp.lock alias for sansan or something similar to lock cars in the server?

Thanks,
#22
mIRC/pawn Scripting / Working votekick for sansan
July 10, 2008, 07:40:08 PM
Hey

(Please move this topic if its not in the right place ;) )

I have just spent the last 4 nearly 5 hours doing a votekick for sansan, if anyone wants it then feel free :)



on *:SIGNAL:vcmp.event.gamecmd {

    elseif ($2 == !votekick) {
      if ($hget(vcmp,loggedin. $+ %id) < 2) { vcmp.adminmsg %id You must be Admin Level 2 or higher to attempt this command. }
      elseif ($hget(VoteKick,started) == started) { vcmp.adminmsg %id There is already a vote kick in progress! }
      else {
        !hadd -m VoteKick started started
        !hadd -m ToKick $vcmp.hgetname($3) voting
        vcmp.adminchat Vote Kick started for $vcmp.hgetname($3) $+ , ID: $3 - Votes Required: 3 - Reason: $iif($4-,$v1,None) $+ , By Admin: $iif($1,$v1,Unknown)
        vcmp.adminchat Auto Recieved one vote! Two more are needed, type !vote <player id being kicked> to do so         
        vcmp.vkick $3 $vcmp.hgetname(%id) $4-
      }
    }
    elseif ($2 == !vote) {
      if ($hget(VotedTable,$vcmp.hgetname(%id)) == voted) { vcmp.adminmsg %id You have already voted! }
      elseif ($hget(ToKick,$vcmp.hgetname($3)) != voting) { vcmp.adminmsg %id This player is not up for a vote kick! }
      else {
        !hadd -m VotedTable $vcmp.hgetname(%id) voted
        vcmp.vkick $3 $vcmp.hgetname(%id) $4-
      }
    }



;--- 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!
  }
}



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
  }
#23
Hey,

I am having major, major, problems. I thought I was ready to release my server but it seems not. I am using sansan and I have a lot of admin commands, however, its not even checking your level, its letting registered and non registered players use all admin commands apart from !slap...

Any ideas?
#24
mIRC/pawn Scripting / [RESOLVED]Snipers Mini - Game
July 01, 2008, 04:22:13 PM
Hi,

I am making a Snipers Mini - Game (M60's for now :P) with Windlord for Sansan. I have got this code to sort the round but I don't know how I am going to restore everyone's control's when the !go command is typed :(. Here is the code, if you are able to help it would be appreciated :)


    elseif ($2 == !go) {
      if ($hget(SnipeHashTable,$vcmp.hgetname($1)) != Sniping) { vcmp.adminmsg %id You are not participating! }
      elseif ($hget(GoHashTable,Go) != Standby) { vcmp.adminmsg %id You can't start yet! Other paricipants may want to join! }
      else {
        timer 1 1 vcmp.gametext.all vcmp.doforall - 3 -
        timer 1 2 vcmp.gametext.all vcmp.doforall - 2 -
        timer 1 3 vcmp.gametext.all vcmp.doforall - 1 -
        timer 1 4 vcmp.gametext.all vcmp.doforall Fight!
        timer 1 5 vcmp.setcon vcmp.doforall 1
      }
    }


the vcmp.setcon vcmp.doforall was something I added in as a test to try and do it, but it failed. Ideally I would like it to loop round the SnipeHashTable and restore all controls to ppl that are on there..

Any ideas?

Cheers,
#25
mIRC/pawn Scripting / Confused about sansan echo =\
June 29, 2008, 08:27:15 PM
Hey

I am confused about sansan's echo. On the handledeath signal which echos to the channel the person who died and the reason:


vcmp.echo 7[ $+ %id $+ ]10 $vcmp.hgetname(%id) $+ %deathreason 


I have noticed that only works for registered users, if I am called Testing (a.ka. A non registered user) it doesn't echo it!

Oh and its fine for non registered users when they speak, it echos the chat fine

Any ideas?
#26
Hi,

I downloaded VRockers new DLL and vc-mp and now I am trying to edit to get it to a script that I can use, however, I can't seem to be able to make a login/ register system and for now I am trying to do a sethp command but that is failing:


on *:SIGNAL:vcmp.player.command2:{
  ; $1 = ServerID, $2 = PlayerID, $3 = Command, $4- = Params
  vcmp.addchat $1 $vcmp.name( $1, $2 ) $+ : /c $3-

  elseif ($3 == sethp) {
    elseif (!$4) vcmp.msg $2 Error - Missing Information, $3 <name> <amount>
    elseif (!$5) vcmp.msg $2 Error - Missing Information, $3 <name> <amount>
    elseif ($4 == -1) vcmp.msg $2 Error - Invalid ID/Name
    else {
      vcmp.sethp $4 $5
      vcmp.say Setting HP on: $4 To Amount: $5 $+ % By Admin: $2
    }
    !.signal vcmp.command2 $strip( $1- )
  }
}


Any ideas?
#27
Hi,

I'm trying to make a command to put a player in a vehicle, I know it can be done because I have seen it before as somone did it to me.

I have got this so far;


  elseif ($2 == gpc) {
    if ($vcmp.cmdcheck(!gpc,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name> <car id>
    elseif (!$4) vcmp.msg %id Error - Missing Information, $2 <name> <car id>
    elseif (%a == -1) vcmp.msg %id Error - Invalid ID/Name
    else {
      vcmp.msg %a Admin $vcmp.getname(%id) has given you $vcmp.carname($4) $+ ,Enjoy.
     
    }
  }


I just know how to put the player in the car after the PM has been sent.

Please help  :(

Cheers,

[SDT]F_T_F0RC3
#28
General Discussion / Vehicle Colours
May 31, 2008, 01:18:24 PM
Hey,

Not sure if this is the right place or not but does anyone know whether or not there is a list of all the colours for the cars? The only one I know is 50 50 which is blue.  :-\

If there please could you link me?

Cheers,

[SDT]F_T_F0RC3