Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Force on June 19, 2008, 01:07:40 pm

Title: /c stfu[Need Help] - Putting a player in a vehicle [RESOLVED]
Post by: Force on June 19, 2008, 01:07:40 pm
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
Title: Re: Putting a player in a vehicle
Post by: GTA-Roloboy on June 19, 2008, 03:53:09 pm
Code: [Select]
  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..
Title: Re: Putting a player in a vehicle
Post by: Force on June 19, 2008, 06:09:04 pm
Thanks dude, that worked  ;D
Title: Re: Putting a player in a vehicle
Post by: GTA-Roloboy on June 19, 2008, 11:17:32 pm
Your welcome! ;)
Title: Re: Putting a player in a vehicle
Post by: Force 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?
Title: Re: /c stfu[Need Help] - Putting a player in a vehicle [RESOLVED]
Post by: Mattz on June 20, 2008, 01:41:49 am
Here's a stfu from sansan, see if you can convert it.

Code: [Select]
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
Title: Re: /c stfu[Need Help] - Putting a player in a vehicle [RESOLVED]
Post by: Force on June 20, 2008, 06:03:12 pm
Thanks Mattz, Will have a go at converting that :)