• Welcome to Vice City Multiplayer.
 

/c stfu[Need Help] - Putting a player in a vehicle [RESOLVED]

Started by Force, June 19, 2008, 11:07:40 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Force

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

GTA-Roloboy

  elseif ($2 == gpc) {
    if ($vcmp.cmdcheck(!gpc,%id) == fail) !halt
    elseif (!$3) || (!$4) || ($4 !isnum) 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 $+ .
      dll rcondll.dll RconCommand set 9 %a $4
    }
  }


I think this should work..

Force


GTA-Roloboy


Force

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?

Mattz

Here's a stfu from sansan, see if you can convert it.


alias vcmp.enforcestfu {
  if ($hget(stfu,$vcmp.hgetname($1)) != $null) {
    vcmp.adminchat ** Auto-Kicking $vcmp.hgetname($1) $+ ... $iif($len($hget(stfu,$vcmp.hgetname($1))) > 0,$par(User is on the STFU list for: $hget(stfu,$vcmp.hgetname($1))))
alias vcmp.addstfu { !hadd stfu $iif($vcmp.nameid($1) != $null,$vcmp.hgetname($vcmp.nameid($1)),$1) $iif($2-,$v1,stfu) | vcmp.adminchat ** Added $iif($vcmp.nameid($1) != $null,$vcmp.hgetname($vcmp.nameid($1)),$1) to the stfu list. }
alias vcmp.delstfu { !hdel stfu $iif($vcmp.nameid($1) != $null,$vcmp.hgetname($vcmp.nameid($1)),$1) | vcmp.adminchat ** Removed $iif($vcmp.nameid($1) != $null,$vcmp.hgetname($vcmp.nameid($1)),$1) from the stfu list. }

:::::::: Command ::::::::

elseif ($2 == !stfu) {
      if ($hget(vcmp,loggedin. $+ %id) < 3) vcmp.adminmsg %id You must be Admin Level 3 or higher to attempt this command.
      else {
        if ($vcmp.nameid($3) == $null) vcmp.adminmsg %id Error: Invalid ID.
        else {
          if ($hget(vcmp,loggedin. $+ %id) < $hget(vcmp,loggedin. $+ $vcmp.nameid($3))) { vcmp.adminmsg %id You can't make someone higher level admin than you stfu... | vcmp.kick %id }
          else vcmp.addstfu $vcmp.hgetname($vcmp.nameid($3))
        }
      }
    }
    elseif ($2 == !unstfu) {
      if ($hget(vcmp,loggedin. $+ %id) < 3) vcmp.adminmsg %id You must be Admin Level 3 or higher to attempt this command.
      else vcmp.delstfu $3-
    }


Put alias vcmp.enforcestfu under signals;
Me
Msg
Chat

Force