Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Tamas on August 02, 2008, 03:53:58 am
-
Does anybody know how the vcmp.sethp command work?
Cuz the !setcarhp function not work too.
vcmp.sethp %id 100
Its changing the health but how can i do it if i want to change the players HP manually Example:
!sethp Tomi 89
-
elseif (($2 == !sethp) && ($vcmp.loggedin($1) > 2)) {
vcmp.sethp $3 $4-
vcmp.adminchat **Admin $vcmp.hgetname($1) Sets:[ $vcmp.hgetname($3) ] HP To:[ $4- ]
}
vcmp.sethp %id 100
Work 100% ;)
-
Work :D
-
Work :D
ok no problem ;)
-
I should use vcmp.sethp $3 $4 not vcmp.sethp $3 $4-
-
Its work fine with "-" symbol too.
-
ye but if u do like !sethp 2 100 dr84
it may crash.. just for the safer way
-
ye but if u do like !sethp 2 100 dr84
it may crash.. just for the safer way
nah my !sethp no crash ;)
-
Hey,
All depends on the alias of the function. It should disregard all variables that it does not need, so using the "-" will have no effect, as for those variables will be lost.
Regards,
Tommis
-
And how can i set this command to work from IRC too?
I tryed this:
Code:
elseif ($1 == !sethp) { vcmp.sethp $vcmp.nameid($2) $4- | vcmp.adminchat Admin:[ $nick ] Changed:[ $iif($vcmp.nameid($2) != $null,$vcmp.hgetname($vcmp.nameid($2)),$2) ] HP To:[ $4- ] }
But its not showing the health number in the chat only [], and if i write !sethp Tamas 67 --> than its kill me, sets my life to 0
-
Is it sasan?
-
Yes
-
And how can i set this command to work from IRC too?
I tryed this:
Code:
elseif ($1 == !sethp) { vcmp.sethp $vcmp.nameid($2) $4- | vcmp.adminchat Admin:[ $nick ] Changed:[ $iif($vcmp.nameid($2) != $null,$vcmp.hgetname($vcmp.nameid($2)),$2) ] HP To:[ $4- ] }
But its not showing the health number in the chat only [], and if i write !sethp Tamas 67 --> than its kill me, sets my life to 0
try:
elseif ($1 == !sethp) { vcmp.sethp $vcmp.nameid($2) $3- | vcmp.adminchat Admin:[ $nick ] Changed:[ $iif($vcmp.nameid($2) != $null,$vcmp.hgetname($vcmp.nameid($2)),$2) ] HP To:[ $4- ] }
;)