24.01.2014, 18:00
Attach Object to Player help [REP]
24.01.2014, 18:13
Код:
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; }
24.01.2014, 18:16
Quote:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/attach", true, 7) == 0) { SetPlayerAttachedObject(playerid, 0, 19270, 5); return 1; } if(strcmp(cmdtext, "/remove", true, 7) == 0) { RemovePlayerAttachedObject(playerid, 0); return 1; } return 1; } |
24.01.2014, 18:26
I updated my post see it and tell me if that works or not
24.01.2014, 20:45
Quote:
Код:
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; } |
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)