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.


Messages - Force

Pages: 1 ... 14 15 [16] 17
226
mIRC/pawn Scripting / Re: Question Please Help
« on: July 03, 2008, 07:17:38 pm »
Or you could use my method :P

Code: [Select]
on *:SIGNAL:vcmp.event.chat:{
  var %name = $left([ $1 ],-1),%id = $vcmp.nameid(%name), %team = $iif($vcmp.hgetteam(%id) != -1,$v1,255), %cname = $vcmp.hgetname(%id) $+ :
  vcmp.enforcelogin %id
  vcmp.enforcestfu %id
  vcmp.enforce.censor %id $2-
  if ($left($2,1) == !) {
    { inc -u4 $+(%,anticmdspam.,[ $+ %id $+ ]) | .signal vcmp.event.gamecmd $1- }
  }
  if (%echolevel > 2) vcmp.echo 4 $+ $+($chr(91),%id,$chr(93)) $+ 7 %cname $+ 1 $2-

227
mIRC/pawn Scripting / Re: Snipers Mini - Game
« on: July 01, 2008, 05:41:29 pm »
Resolved the issue, all I had to do was make an alias:

Code: [Select]
alias vcmp.setcon.all vcmp.doforall vcmp.setcon $$1 $$2-


And it was sorted :)

228
mIRC/pawn Scripting / [RESOLVED]Snipers Mini - Game
« on: July 01, 2008, 05: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 :)

Code: [Select]
    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,

229
mIRC/pawn Scripting / Re: wtffff
« on: July 01, 2008, 05:16:59 pm »
Ok, You also need to make sure that the rcon port is; 5315 (standard one) and server port is: 5192 (standard one) unless you changed it?  :-X

230
mIRC/pawn Scripting / Re: wtffff
« on: July 01, 2008, 03:07:29 pm »
I you are running the server from your pc then just make the ip:

127.0.0.1

Simple!

231
mIRC/pawn Scripting / Re: Confused about sansan echo =\
« on: June 30, 2008, 06:00:19 pm »
Yeah its very odd and I have spent ages trying to come up with a solution. :( If anyone finds one then please share it :).

Cheers

232
mIRC/pawn Scripting / Confused about sansan echo =\
« on: June 29, 2008, 09: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:

Code: [Select]
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?

233
Yeah I realised that and changed it to vcmp.sethealth and it all works fine now, however, until my skills are a bit better im going back to sansan :P

234
Thanks dude, Hopefully I get my head around the $1 part soon  :)

Edit: For some reason it says there is missing information when I put in everything, for example:

/c sethp 0 20 --> could it be the 0?

Info: Yes it was the 0 but now u cant hp on daft things like bob or w/e and it don't even set the hp...meh! i give up :(

Edit 2: Linkage doesn't work :(

235
mIRC/pawn Scripting / VRocker's New DLL - Scripting is impossible :'(
« on: June 28, 2008, 02:01:37 pm »
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:

Code: [Select]
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?

236
Thanks Mattz, Will have a go at converting that :)

237
mIRC/pawn Scripting / Re: Putting a player in a vehicle
« on: June 19, 2008, 11:43:26 pm »
Another question is I have been looking on how to make  a /c stfu command but I can't find one, nor find the basis of one, has anyone got any ideas?

238
mIRC/pawn Scripting / Re: Putting a player in a vehicle
« on: June 19, 2008, 06:09:04 pm »
Thanks dude, that worked  ;D

239
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;

Code: [Select]
  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

240
Support / Re: The New Vehicle_ID_To_Model_convertor
« on: June 12, 2008, 09:43:12 pm »
It's a great Program Rulk, thank you for letting SDT beta test it

Pages: 1 ... 14 15 [16] 17