Attach Object to Player help [REP]
#2

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/attach", true, 7) == 0)
    {
      SetPlayerAttachedObject( playerid, 0, 19270 , 5, 0.118957, 0.048861, -0.017178, 67.190078, 288.352386, 0.000000, 0.000000, 0.000000, 1.000000 ); 
	SetPlayerAttachedObject( playerid, 1, 19270, 6, 0.118957, 0.037811, 0.022248, 93.706535, 288.517608, 0.000000, 0.000000, 0.000000, 1.000000 ); 
        SetPlayerAttachedObject( playerid, 2, 19270, 9, 0.118957, 0.037811, 0.022248, 93.706535, 288.517608, 0.000000, 0.000000, 0.000000, 1.000000 ); 
        SetPlayerAttachedObject( playerid, 3, 19270, 10, 0.118957, 0.037811, 0.022248, 93.706535, 288.517608, 0.000000, 0.000000, 0.000000, 1.000000 ); 
        return 1;
    }

    if(strcmp(cmdtext, "/remove", true, 7) == 0)
    {
        RemovePlayerAttachedObject(playerid, 0); 
        RemovePlayerAttachedObject(playerid, 1); 
        RemovePlayerAttachedObject(playerid, 2); 
        RemovePlayerAttachedObject(playerid, 3); 
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Attach Object to Player help [REP] - by MahdiGames - 24.01.2014, 18:00
Re: Attach Object to Player help [REP] - by ReD_HunTeR - 24.01.2014, 18:13
Re: Attach Object to Player help [REP] - by MahdiGames - 24.01.2014, 18:16
Re: Attach Object to Player help [REP] - by ReD_HunTeR - 24.01.2014, 18:26
Re: Attach Object to Player help [REP] - by MahdiGames - 24.01.2014, 20:45

Forum Jump:


Users browsing this thread: 1 Guest(s)