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 ... 12 13 [14] 15 16 17
196
mIRC/pawn Scripting / Re: Working votekick for sansan
« on: July 27, 2008, 08:55:11 pm »
You need to put the following code at teh bottom of the part signal:

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

197
mIRC/pawn Scripting / Re: Working votekick for sansan
« on: July 27, 2008, 03:48:42 am »
It works fine so it has to be something your doing wrong  :-X

If it didn't work I would not have posted it =\

198
mIRC/pawn Scripting / Re: Umm Sansan hgetwep?
« on: July 27, 2008, 02:55:08 am »
get the weapon id from the weapon a player is currently holding

so var %wep = $vcmp.hgetwep(1)

would put the weapon id of the weapon player id 1 is holding

used for the save weapon feature in rpgdm and various other things ._.

Thanks,

That must mean I can save these to a hash table for each player and then reset them once they have finished the Sniper's Mini Game :)

199
mIRC/pawn Scripting / Umm Sansan hgetwep?
« on: July 26, 2008, 02:01:52 pm »
I'm just wondering what the following alias could be used for:

Code: [Select]
alias vcmp.hgetwep !return $gettok($hget(vcmp,players. $+ $1),10,32)

If ya have any ideas let me know please :)

200
mIRC/pawn Scripting / Re: Money Error
« on: July 26, 2008, 02:03:12 am »
Basically Tanax its a VC:MP Error and those were some possible way's about how it could be caused I think ;)

201
mIRC/pawn Scripting / Re: Dribe By Auto Kick Problem
« on: July 26, 2008, 01:51:52 am »
Damn you ReVilo, You beat me to it, But yeah, your completely right there :)

202
mIRC/pawn Scripting / Re: Buycar Scriptin Sasan
« on: July 24, 2008, 10:09:12 pm »
i was not talking about the "script" i was talking about moe's program to convert car id's to models.

THIS IS MENT TO BE A HELP FORUM, NOT A SQUABBLE FORUM.

so all those comments you, windlord / other members have made are irrelevant and a complete waste of space, taking the attention away from the helpfull code thats been posted in this section.



Look at the bold bit carefully, its not moe's program, its rulk's. Moe posted it with permssion from rulk, so instead of calling it moe's program call it rulk's. You need to learn what its like to spend ages working on a script which could be 5000 lines long, it takes us effort and time. And you may think its not a lot but do you even think about testing and making sure things work and fixing them if they don't!?

AKA what wind has said :P

[end of rant]

203
mIRC/pawn Scripting / Re: Gametext Script?
« on: July 24, 2008, 07:57:03 pm »
No problem ;)

Just so you know a || in mirc means or

204
mIRC/pawn Scripting / Re: Gametext Script?
« on: July 24, 2008, 04:24:55 pm »
Yep in there it seems its work but...

Quote
elseif (($1 == !say) || ($1 == !chat)) vcmp.adminchat || $+ $nick $+ || $2-

its the say command and if i put another example:

Quote
elseif (($1 == !anothertestsaycommand) || ($1 == !atsc)) vcmp.adminchat || $+ $nick $+ || $2-

its not work only with that one

That would be because your telling it to do vcmp.adminchat or $+  $nick $+ or $2-. Which of course it can't do, it needs to be:

Code: [Select]
elseif (($1 == !say) || ($1 == !chat))  {
vcmp.adminchat $nick $2-
}

205
mIRC/pawn Scripting / Re: Car HP.
« on: July 24, 2008, 12:30:52 pm »
Can you post the %p variable please?

206
mIRC/pawn Scripting / Re: Car HP.
« on: July 23, 2008, 12:59:16 pm »
Teh lolz jack, thats it's HP not it's DAMAGE ;)

The script that I have used for its HP is;

Quote
vcmp.adminmsg %id Car Health: $chr(91) $round($calc($vcmp.hgetcarhp(%p) / 10),2) $+ % $chr(93)

207
mIRC/pawn Scripting / Re: Dribe By Auto Kick Problem
« on: July 22, 2008, 01:18:28 pm »
Ok Tanax, Are we going to accept my advice this time or not?

Ok first of all simply use the vcmp.kick already

Then use the following code, this needs to go under vcmp.event.kill (the part which echoes when someone killed someone else)
Code: [Select]
if ($vcmp.deathreason($4) == Drive-By) {
vcmp.adminchat *** Admin Auto - Kick Player: $+ $chr(91) $vcmp.hgetname(%idk) $chr(93) Reason: $+ $chr(91) Drive - By $chr(93)
vcmp.kick %idk

And that should work fine

UNTESTED

208
mIRC/pawn Scripting / Re: sansan - money per kill
« on: July 20, 2008, 11:45:39 am »
By the way Tanax, those [ ]'s brackets are sometimes dodgy, I would use $chr(91) and $chr(93)

Code: [Select]
vcmp.adminchat **Taking: $+ $chr(91) $vcmp.hgetname($3) $chr(93) To: $+ $chr(91) $vcmp.hgetname(%id) $chr(93)

Then they should work fine with no problem's ;)

209
mIRC/pawn Scripting / Re: !time
« on: July 20, 2008, 11:42:07 am »
All you need to do is:

Code: [Select]
vcmp.adminchat GMT + 1 Time: $time

That's if you are running the scripts from your computer ;)

210
mIRC/pawn Scripting / help with unban
« on: July 16, 2008, 10:19:51 pm »
Hey,

I have been using sansan for my new server that I have made and i have a question about the unbanning.

I have changed vcmp.ban to write to a text file like so:

Code: [Select]
!write vcmp.banned.txt Banned: $vcmp.hgetname($vcmp.nameid($1)) - By Admin: $vcmp.hgetname($1) - IP: $vcmp.hgetip($vcmp.nameid($1)) - Reason: $iif($2,$2-,)

However, When i unban someone i want to remove them from this file, how would i go about doing so?

Help will be appreciated :)

Cheers,

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