Author Topic: /c stfu[Need Help] - Putting a player in a vehicle [RESOLVED]  (Read 4623 times)

0 Members and 1 Guest are viewing this topic.

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
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
« Last Edit: June 19, 2008, 11:44:21 pm by [SDT]F_T_F0RC3 »

Offline GTA-Roloboy

  • Made Man
  • ***
  • Posts: 135
    • View Profile
Re: Putting a player in a vehicle
« Reply #1 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..

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: Putting a player in a vehicle
« Reply #2 on: June 19, 2008, 06:09:04 pm »
Thanks dude, that worked  ;D

Offline GTA-Roloboy

  • Made Man
  • ***
  • Posts: 135
    • View Profile
Re: Putting a player in a vehicle
« Reply #3 on: June 19, 2008, 11:17:32 pm »
Your welcome! ;)

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: Putting a player in a vehicle
« Reply #4 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?

Offline Mattz

  • VC:MP Lead Tester
  • Made Man
  • *
  • Posts: 192
  • BK-201
    • View Profile
Re: /c stfu[Need Help] - Putting a player in a vehicle [RESOLVED]
« Reply #5 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


Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: /c stfu[Need Help] - Putting a player in a vehicle [RESOLVED]
« Reply #6 on: June 20, 2008, 06:03:12 pm »
Thanks Mattz, Will have a go at converting that :)