Some mhelp over here...
#1

Hi! I want to make a new FS, and I need some help : how do I get the player coords, and then add an object to that coords, at the player's command? REP+
Reply
#2

Quote:
Originally Posted by DiGiTaL_AnGeL
Посмотреть сообщение
Hi! I want to make a new FS, and I need some help : how do I get the player coords, and then add an object to that coords, at the player's command? REP+
GetPlayerPos
CreateObject

pawn Код:
if( strcmp("/mycommand", cmdtext, true, 10 ) == 0 )
    {
        // They have typed /mycommand.
       
        new
            Float: MyPosition [ 3 ];
           
        GetPlayerPos( playerid, MyPosition [ 0 ], MyPosition [ 1 ], MyPosition [ 2 ] );
        // MyPosition [ 0 ] = X, MyPosition [ 1 ] = Y, MyPosition [ 2 ] = Z;
       
        CreateObject( OBJECTID, MyPosition [ 0 ], MyPosition [ 1 ], MyPosition [ 2 ], 0.0, 0.0, 0.0 );
        return true;
    }
Reply
#3

Here's the problem :

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)