Need Command Goto (ZCMD)
#3

Quote:
Originally Posted by Grim_
Посмотреть сообщение
pawn Код:
COMMAND:goto( playerid, params[ ] )
{
   if( isnull( params ) ) return 0; // No player
   new targetid = strval( params );
   if( !IsPlayerConnected( targetid ) ) return 0; // Targeted player is not connected
   new Float: Pos[ 4 ];
   GetPlayerPos( targetid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
   GetPlayerFacingAngle( targetid, Pos[ 3 ] );
   SetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
   SetPlayerFacingAngle( playerid, Pos[ 3 ] );
   return 1;
}
Thanks Grim.

Respect
Reply


Messages In This Thread
Need Command Goto (ZCMD) - by SamyRomafia - 01.01.2011, 19:10
Re: Need Command Goto (ZCMD) - by Grim_ - 01.01.2011, 19:18
Re: Need Command Goto (ZCMD) - by SamyRomafia - 01.01.2011, 19:21
Re: Need Command Goto (ZCMD) - by SamyRomafia - 01.01.2011, 19:31
Re: Need Command Goto (ZCMD) - by Grim_ - 01.01.2011, 19:34
Re: Need Command Goto (ZCMD) - by SamyRomafia - 01.01.2011, 19:42

Forum Jump:


Users browsing this thread: 1 Guest(s)