Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Nemesis2500 on March 07, 2008, 07:23:20 pm
-
hey ppl
1st question: im usins sansan v3 and i have the !jail,!drop and !drown command,but how can i make those commands ingame (only admins) because i only can use them in IRC ???
2nd question: how can i make an auto-warn command for exapmple when someone drive-by
pls help :-X
-
add them in this section:
;--- handle in-game [chat] commands
on *:SIGNAL:vcmp.event.gamecmd {
var %id = $vcmp.nameid($left($1,-1))
;--- something like this
if ($2 == !command) {
if ($vcmp.loggedin(%id) < 5) vcmp.adminmsg %id You must be Admin Level 5 or higher to attempt this command.
else {
;--- your command executes here here
vcmp.adminchat ** blah command
}
}
}
-
now i have the ingame commands =P
-
now i have the ingame commands =P
Your welcome :P ;)
-
}
elseif ($2 == !jail) || ($2 == !pmjail) {
if ($vcmp.cmdcheck(!jail,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name> <reason>
elseif (%a == -1) vcmp.msg %id Error - Invalid ID/Name
else {
vcmp.cmdsay $2 %id Admin $+($chr(91),%name $+,$chr(93)), Jailed $+($chr(91),$vcmp.name(%a),$chr(93)) Reason: $+($chr(91),$iif($4-,$v1,None),$chr(93))
vcmp.setlocation %a 388.669739 -509.847992 9.395614
vcmp.setcont %a 0
vcmp.announce %a We behaved badly These Arrested!
}
}
elseif ($2 == !unjail) || ($2 == !pmunjail) {
if ($vcmp.cmdcheck(!unjail,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name> <reason>
elseif (%a == -1) vcmp.msg %id Error - Invalid ID/Name
else {
vcmp.cmdsay $2 %id Admin $+($chr(91),%name $+,$chr(93)), Unjailed $+($chr(91),$vcmp.name(%a),$chr(93)) Reason: $+($chr(91),$iif($4-,$v1,None),$chr(93))
vcmp.setlocation %a 398.7801 -469.253 11.7319
vcmp.setcont %a 1
vcmp.announce %a You Libe largate and play clean!
}
Nemesis that is what we are looking bye
-
}
elseif ($2 == !jail) || ($2 == !pmjail) {
if ($vcmp.cmdcheck(!jail,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name> <reason>
elseif (%a == -1) vcmp.msg %id Error - Invalid ID/Name
else {
vcmp.cmdsay $2 %id Admin $+($chr(91),%name $+,$chr(93)), Jailed $+($chr(91),$vcmp.name(%a),$chr(93)) Reason: $+($chr(91),$iif($4-,$v1,None),$chr(93))
vcmp.setlocation %a 388.669739 -509.847992 9.395614
vcmp.setcont %a 0
vcmp.announce %a We behaved badly These Arrested!
}
}
elseif ($2 == !unjail) || ($2 == !pmunjail) {
if ($vcmp.cmdcheck(!unjail,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <name> <reason>
elseif (%a == -1) vcmp.msg %id Error - Invalid ID/Name
else {
vcmp.cmdsay $2 %id Admin $+($chr(91),%name $+,$chr(93)), Unjailed $+($chr(91),$vcmp.name(%a),$chr(93)) Reason: $+($chr(91),$iif($4-,$v1,None),$chr(93))
vcmp.setlocation %a 398.7801 -469.253 11.7319
vcmp.setcont %a 1
vcmp.announce %a You Libe largate and play clean!
}
Nemesis that is what we are looking bye
No dark, from what I can see that code works on GUS aliases, Nemesis is working on sansan v3...
-
ok thank revilo