Author Topic: :( Cuff/ :) Uncuff commands  (Read 3811 times)

0 Members and 1 Guest are viewing this topic.

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
:( Cuff/ :) Uncuff commands
« on: December 16, 2012, 06:37:42 pm »
use this cmd
this is cuff
[pawn]   else if ( strcmp( cmd, "cuff", true ) == 0 )
   {
      new reason[ 256 ], szMsg[ 128 ], plr;
      tmp = strtok( cmdtext, idx ), reason = strtok( cmdtext, idx ), plr = FindPlayerIDFromString( tmp );
      if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
      else if ( !strlen(reason) ) SendClientMessage( playerid, COLOR_RED, "USAGE: /c cuff [Nick/ID] reason" );
        else if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" );
      else
      {
         format( szMsg, sizeof( szMsg ), "Admin %s cuffed player:[ %s ] Reason:[ %s ]", gPlayers[ playerid ], gPlayers[ plr ], cmdtext[ strlen( tmp ) +7 ] );
         SendClientMessageToAll( COLOR_GREEN, szMsg );
      TogglePlayerControllable( plr, 0 );
  }
      return 1;
   }[/pawn]
this is uncuff
[pawn]   else if ( strcmp( cmd, "uncuff", true ) == 0 )
   {
      new reason[ 256 ], szMsg[ 128 ], plr;
      tmp = strtok( cmdtext, idx ), reason = strtok( cmdtext, idx ), plr = FindPlayerIDFromString( tmp );
      if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
      else if ( !strlen(reason) ) SendClientMessage( playerid, COLOR_RED, "USAGE: /c uncuff [Nick/ID] reason" );
        else if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" );
      else
      {
         format( szMsg, sizeof( szMsg ), "Admin %s uncuffed player:[ %s ] Reason:[ %s ]", gPlayers[ playerid ], gPlayers[ plr ], cmdtext[ strlen( tmp ) +7 ] );
         SendClientMessageToAll( COLOR_GREEN, szMsg );
      TogglePlayerControllable( plr, 1 );
  }
      return 1;
      }   [/pawn]
enjoy
« Last Edit: December 17, 2012, 01:05:12 pm by mrockxkingbutt »
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline kitt85711

  • Wiseguy
  • **
  • Posts: 72
    • View Profile
Re: Cuff cmds (NEED REPORT BUGS)
« Reply #1 on: December 17, 2012, 08:19:27 am »
The player dies because your practically drowning them with those coordinates. "-556.0719, -739.7675, 4.7610,0,0"

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: Cuff cmds (NEED REPORT BUGS)
« Reply #2 on: December 17, 2012, 05:37:47 pm »
The player dies because your practically drowning them with those coordinates. "-556.0719, -739.7675, 4.7610,0,0"

Where you saw that ? I don't see any SetPlayerPos  ???

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: :( Cuff/ :) Uncuff commands
« Reply #3 on: December 17, 2012, 06:04:59 pm »
do you like it hey can you give me the function that only works when i am near to a player to cuff him
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol