Objects does not appear
#1

Код:
CMD:balloon(playerid,params[])
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    DestroyObject(Balloon[playerid]);
    DestroyObject(Fire[playerid]);
    DestroyObject(Fire1[playerid]);
    PlayerIn[playerid][BalloonPlayer] = 0;
    Balloon[playerid] = CreateObject(19335, x, y, z+3,   0.00, 0.00, 0.00);
    Fire[playerid] = CreateObject(18692, 0,0,0,   0.00, 0.00, 0.00);
    Fire1[playerid] = CreateObject(18692, 0,0,0,   0.00, 0.00, 0.00);
    AttachObjectToObject(Fire[playerid], Balloon[playerid], 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 1);
    AttachObjectToObject(Fire1[playerid], Balloon[playerid], 0.0, 0.0, 4.0, 0.0, 0.0, 0.0, 1);
    SetPlayerPos(playerid,x,y,z+3.5);
    return 1;
}
I made a balloon command but the objects does not appear.
Reply
#2

Removed
Reply
#3

Quote:
Originally Posted by 1Deagle1
Посмотреть сообщение
Код:
CMD:balloon(playerid,params[])
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    PlayerIn[playerid][BalloonPlayer] = 0;
    Balloon[playerid] = CreateObject(19335, x, y, z+3,   0.00, 0.00, 0.00);
    Fire[playerid] = CreateObject(18692, 0,0,0,   0.00, 0.00, 0.00);
    Fire1[playerid] = CreateObject(18692, 0,0,0,   0.00, 0.00, 0.00);
    AttachObjectToObject(Fire[playerid], Balloon[playerid], 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 1);
    AttachObjectToObject(Fire1[playerid], Balloon[playerid], 0.0, 0.0, 4.0, 0.0, 0.0, 0.0, 1);
    SetPlayerPos(playerid,x,y,z+3.5);
    return 1;
}
Try this.
Nop,dosent worked
Reply
#4

Do it like this:

PHP код:
CMD:balloon(playerid,params[])
{
    new 
Float:x,Float:y,Float:z;
    
GetPlayerPos(playeridxyz);
    
DestroyObject(Balloon[playerid]), DestroyObject(Fire[playerid]),DestroyObject(Fire1[playerid]);
    
PlayerIn[playerid][BalloonPlayer] = 0;
    
Balloon[playerid] = CreateObject(19335xyz+3,   0.000.000.00);
    
Fire[playerid] = CreateObject(18692x,y,z,   0.000.000.00);
    
Fire1[playerid] = CreateObject(18692x,y,z,   0.000.000.00);
    
AttachObjectToObject(Fire[playerid], Balloon[playerid], 0.00.02.00.00.00.01);
    
AttachObjectToObject(Fire1[playerid], Balloon[playerid], 0.00.04.00.00.00.01);
    
SetPlayerPos(playerid,x,y,z+3.5);
    return 
1;

Reply
#5

Removed
Reply
#6

Quote:
Originally Posted by 1Deagle1
Посмотреть сообщение
Код:
  
    Balloon[playerid] = CreateObject(19335, x, y, z+3,   0.00, 0.00, 0.00);
    Fire[playerid] = CreateObject(18692, x ,y ,z ,   0.00, 0.00, 0.00);
    Fire1[playerid] = CreateObject(18692, x, y, z,  0.00, 0.00, 0.00);
This will work D':
Nop.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)