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; } |