11.07.2012, 16:05
(
Последний раз редактировалось LOLtz120; 03.08.2013 в 11:20.
)
delete
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/attach", true, 7) == 0)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, 1) {
RemovePlayerAttachedObject(playerid, 1); }
if(IsPlayerAttachedObjectSlotUsed(playerid, 0) {
RemovePlayerAttachedObject(playerid, 0); }
SetPlayerAttachedObject(playerid, 0, 19270, 5);
SetPlayerAttachedObject(playerid, 1, 19270, 5);
return 1;
}
if(strcmp(cmdtext, "/remove", true, 7) == 0)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, 1) {
RemovePlayerAttachedObject(playerid 1); }
if(IsPlayerAttachedObjectSlotUsed(playerid, 0) {
RemovePlayerAttachedObject(playerid, 0); }
return 1;
}
return 1;
}
Код:
COMMAND:activatefire(playerid, params[]) { SetPlayerAttachedObject( playerid, 1, 19270, 5, 0.118957, 0.048861, -0.017178, 67.190078, 288.352386, 0.000000, 0.000000, 0.000000, 1.000000 ); // MapMarkerFire1 SetPlayerAttachedObject( playerid, 2, 19270, 6, 0.118957, 0.037811, 0.022248, 93.706535, 288.517608, 0.000000, 0.000000, 0.000000, 1.000000 ); // MapMarkerFire1 SetPlayerAttachedObject( playerid, 3, 19270, 9, 0.118957, 0.037811, 0.022248, 93.706535, 288.517608, 0.000000, 0.000000, 0.000000, 1.000000 ); // MapMarkerFire1 SetPlayerAttachedObject( playerid, 4, 19270, 10, 0.118957, 0.037811, 0.022248, 93.706535, 288.517608, 0.000000, 0.000000, 0.000000, 1.000000 ); // MapMarkerFire1 return 1; } |