06.06.2012, 16:22
i added an command and made it dcmd but when i use /robber in game it gives me but it does not show the full object
this one shows half an police shield![](http://i45.tinypic.com/2nr27ax.png)
here is my code
whats is wrong help me please also i get no errors on compile this also worked on strcmp but not dcmd whats wrong i have all the defines
like
this one shows half an police shield
![](http://i45.tinypic.com/2nr27ax.png)
here is my code
Код:
dcmd_robber(playerid, params[]) { #pragma unused params SetPlayerAttachedObject(playerid, 1, 19142, 1, 0.112397, 0.049958, -0.001576, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SetPlayerAttachedObject(playerid, 2, 1550, 1, -0.008714, -0.188819, -0.026564, 159.138153, 86.558647, 0.000000, 1.005565, 0.984468, 1.014210 ); // CJ_MONEY_BAG - SetPlayerAttachedObject(playerid, 3, 18637, 1, 0.000000, -0.026987, 0.152000, 89.427894, 357.510375, 273.945983, 1.000000, 1.000000, 1.000000 ); // PoliceShield1 - Shield on back SetPlayerAttachedObject(playerid, 4, 18634, 6, 0.045389, -0.019335, -0.246956, 0.000000, 91.442123, 85.389228, 0.971265, 1.000000, 1.000000 ); // GTASACrowbar1 - Crowbar in hand SetPlayerAttachedObject(playerid, 5, 1485, 18, -0.024238, -0.058657, -0.019224, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // CJ_CIGGY - cuban cigar SendClientMessage(playerid, COLOR_RED, "You've Have gave urself rob gear"); return 1; }
like
Код:
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9) #define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1) #define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)