/slap rcon command
#6

I really suggest you switch to ZCMD for faster and more efficient command processing.

The following code is untested:
pawn Код:
if( !strcmp( cmdtext, "/slap", true ) )
{
   if( !cmdtext[ 5 ] ) return 0; // No parameters entered
   if( !IsPlayerConnected( strval( cmdtext[ 6 ] ) ) ) return 0; // target not connected
   new Float: Pos[ 3 ];
   GetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
   SetPlayerPos( strval( cmdtext[ 6 ] ), Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
   return 1;
}
Obviously, this is the base of the command. Adjust as necessary.
Reply


Messages In This Thread
/slap rcon command - by hadzx - 25.01.2011, 20:22
Re: /slap rcon command - by hadzx - 25.01.2011, 21:00
Re: /slap rcon command - by blackwave - 25.01.2011, 21:02
Re: /slap rcon command - by Mokerr - 25.01.2011, 22:01
Re: /slap rcon command - by hadzx - 25.01.2011, 22:31
Re: /slap rcon command - by Grim_ - 25.01.2011, 22:41
Re: /slap rcon command - by hadzx - 25.01.2011, 22:49
Re: /slap rcon command - by Scenario - 25.01.2011, 23:04
Re: /slap rcon command - by Mokerr - 25.01.2011, 23:20
Re: /slap rcon command - by Steven82 - 26.01.2011, 03:46

Forum Jump:


Users browsing this thread: 3 Guest(s)