Jump to content
  • 0

pomoc Attach Obejct


INSANE_25_ICON

Dotaz

#include "a_samp"

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/tmajak", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xff0000ff,"Nesedíš v aute!");
new myobject1 = CreateObject(19310,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(myobject1, GetPlayerVehicleID(playerid), 2498.87377,-1668.23950,14.75253,-13.499999,0.000000,0.000000);
SendClientMessage(playerid,0xff0000ff,"[ ! ] {ffffff} Pridal si si {33ccff} Taxi Majak");
return 1;
}
if (strcmp("/pmajak", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xff0000ff,"Nesedíš v aute!");
new myobject2 = CreateObject(19420,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(myobject2, GetPlayerVehicleID(playerid), 2493.60864,-1663.3404,14.81009,-13.499999,0.000000,0.000000);
SendClientMessage(playerid,0xff0000ff,"[ ! ] {ffffff} Pridal si si {33ccff} Policajne majaky");
return 1;
}
return 0;
}

Všetko v pohode len attachi sa mi neukažu prosím help oby dva majaky sa maju ukazať na streche auta. Prosím pomoc

Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

  • 0

mas tam zle suradnice v ATTACHOBJECTTOVEHICLE, tam mas dat o kolko metrov chces posunut objekt od stredu auta. takze stred auta je 0, 0, 0 a ked ho chces dat na strechu tak to bude nejako 0, 0, 0.3 (x, y, z).

Nieje na to nejaky program ? :d

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...