28.06.2012, 11:46
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/miniguns", cmdtext, true, 5) == 0)
{
new minigun1;
new minigun2;
minigun1 = CreateObject(362, 0.78, 1.46, 0.40, 2.40, 27.12, 87.01);
minigun2 = CreateObject(362, -0.52, 1.29, 0.50, 2.40, 27.12, 87.01);
AttachObjectToVehicle(GetPVarInt(playerid, "minigun1"), GetPlayerVehicleID(playerid), 0.78, 1.46, 0.40, 2.40, 27.12, 87.01);
AttachObjectToVehicle(GetPVarInt(playerid, "minigun2"), GetPlayerVehicleID(playerid), -0.52, 1.29, 0.50, 2.40, 27.12, 87.01);
return 1;
}
if (strcmp("/rpgs", cmdtext, true, 10) == 0)
{
new RPG1;
new RPG2;
RPG1 = CreateObject(359, 0.53, -0.33, 0.72, 0.00, 0.00, 86.16);
RPG2 = CreateObject(359, -0.58, -0.18, 0.72, 0.00, 0.00, 86.16);
AttachObjectToVehicle(GetPVarInt(playerid, "RPG1"), GetPlayerVehicleID(playerid), 0.53, -0.33, 0.72, 0.00, 0.00, 86.16);
AttachObjectToVehicle(GetPVarInt(playerid, "RPG2"), GetPlayerVehicleID(playerid), -0.58, -0.18, 0.72, 0.00, 0.00, 86.16);
return 1;
}
}