26.04.2013, 16:45
pawn Код:
YCMD:puxar ( playerid, params [ ], help )
{
new
targetid [ 6 ];
if ( sscanf ( params, "uuuuuu", targetid [ 0 ], targetid [ 1 ], targetid [ 2 ], targetid [ 3 ], targetid [ 4 ], targetid [ 5 ] ) )
return SendClientMessage ( playerid, -1, "Use: /puxar [ID] [ID] [ID] [ID] [ID] [ID]" );
new
Float: plr_pos [ MAX_PLAYERS ] [ 4 ];
GetPlayerPos ( playerid, plr_pos [ playerid ] [ 0 ], plr_pos [ playerid ] [ 1 ], plr_pos [ playerid ] [ 2 ] );
GetPlayerFacingAngle ( playerid, plr_pos [ playerid ] [ 3 ] );
for ( new i = 0; i < 6; i++ )
{
SetPlayerPos ( i, plr_pos [ playerid ] [ 0 ], plr_pos [ playerid ] [ 1 ], plr_pos [ playerid ] [ 2 ] );
SetPlayerFacingAngle ( i, plr_pos [ playerid ] [ 3 ] );
}
return 1;
}