Objects does not appear (2)
#1

Still not working

Код:
CMD:balloon(playerid,params[])
{
	if(PlayerInfo[playerid][pAdmin] == 7) {
	if(PlayerInfo[playerid][pVip] == 0) return 0;
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    PlayerIn[playerid][BalloonPlayer] = 0;
    Balloon[playerid] = CreateDynamicObject(19335,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000); //
    Fire[playerid] = CreateDynamicObject(18692,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000); //
    Fire1[playerid] = CreateDynamicObject(18692,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000); //
    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);
    SendClientMessage(playerid,COLOR_GREENZ,"Press the following keys to control the hot air balloon");
    SendClientMessage(playerid,COLOR_GREENZ,"~k~~PED_SPRINT~+~k~~CONVERSATION_YES~ (Move Balloon Up)");
    SendClientMessage(playerid,COLOR_GREENZ,"~k~~PED_SPRINT~+~k~~CONVERSATION_NO~ (Move Balloon Down)");
    SendClientMessage(playerid,COLOR_GREENZ,"~k~~VEHICLE_ENTER_EXIT~+~k~~CONVERSATION_YES~ (Move Balloon Forward)");
    SendClientMessage(playerid,COLOR_GREENZ,"~k~~VEHICLE_ENTER_EXIT~+~k~~CONVERSATION_NO~ (Move Balloon Back)");
    SendClientMessage(playerid,COLOR_GREENZ,"~k~~SNEAK_ABOUT~+~k~~CONVERSATION_NO~ (Move Balloon Left)");
    SendClientMessage(playerid,COLOR_GREENZ,"~k~~SNEAK_ABOUT~+~k~~CONVERSATION_YES~ (Move Balloon Right)");
    PlayerIn[playerid][BalloonPlayer] = 1;
    }
    return 1;
}
Reply
#2

pawn Код:
CMD:balloon(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] == 7)
    {
        if(PlayerInfo[playerid][pVip] == 0) return 0;

        new Float:x,Float:y,Float:z;
        GetPlayerPos(playerid, x, y, z);
        SetPlayerPos(playerid, x, y, z+3.5);
       
        new world = GetPlayerVirtualWorld(playerid);
        new interior = GetPlayerInterior(playerid);
       
        //CreateDynamicObject(modelid, x, y, z, rx, ry, rz, worldid, interiorid, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD);
        Balloon[playerid] = CreateDynamicObject(19335, x, y, z, 0.0,0.0,0.0, world, interior);
        Fire[playerid] = CreateDynamicObject(18692, x, y, z, 0.0, 0.0, 0.0, world, interior);
        Fire1[playerid] = CreateDynamicObject(18692, x, y, z,0.0,0.0,0.0, world, interior);
       
        //AttachDynamicObjectToObject(STREAMER_TAG_OBJECT objectid, attachtoid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz, syncrotation = 1);
        AttachDynamicObjectToObject(Fire[playerid], Balloon[playerid], 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 1);
        AttachDynamicObjectToObject(Fire1[playerid], Balloon[playerid], 0.0, 0.0, 4.0, 0.0, 0.0, 0.0, 1);
       
        SendClientMessage(playerid,COLOR_GREENZ,"Press the following keys to control the hot air balloon");
        SendClientMessage(playerid,COLOR_GREENZ,"~k~~PED_SPRINT~+~k~~CONVERSATION_YES~ (Move Balloon Up)");
        SendClientMessage(playerid,COLOR_GREENZ,"~k~~PED_SPRINT~+~k~~CONVERSATION_NO~ (Move Balloon Down)");
        SendClientMessage(playerid,COLOR_GREENZ,"~k~~VEHICLE_ENTER_EXIT~+~k~~CONVERSATION_YES~ (Move Balloon Forward)");
        SendClientMessage(playerid,COLOR_GREENZ,"~k~~VEHICLE_ENTER_EXIT~+~k~~CONVERSATION_NO~ (Move Balloon Back)");
        SendClientMessage(playerid,COLOR_GREENZ,"~k~~SNEAK_ABOUT~+~k~~CONVERSATION_NO~ (Move Balloon Left)");
        SendClientMessage(playerid,COLOR_GREENZ,"~k~~SNEAK_ABOUT~+~k~~CONVERSATION_YES~ (Move Balloon Right)");
        PlayerIn[playerid][BalloonPlayer] = 1;
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
pawn Код:
CMD:balloon(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] == 7)
    {
        if(PlayerInfo[playerid][pVip] == 0) return 0;

        new Float:x,Float:y,Float:z;
        GetPlayerPos(playerid, x, y, z);
        SetPlayerPos(playerid, x, y, z+3.5);
       
        new world = GetPlayerVirtualWorld(playerid);
        new interior = GetPlayerInterior(playerid);
       
        //CreateDynamicObject(modelid, x, y, z, rx, ry, rz, worldid, interiorid, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD);
        Balloon[playerid] = CreateDynamicObject(19335, x, y, z, 0.0,0.0,0.0, world, interior);
        Fire[playerid] = CreateDynamicObject(18692, x, y, z, 0.0, 0.0, 0.0, world, interior);
        Fire1[playerid] = CreateDynamicObject(18692, x, y, z,0.0,0.0,0.0, world, interior);
       
        //AttachDynamicObjectToObject(STREAMER_TAG_OBJECT objectid, attachtoid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz, syncrotation = 1);
        AttachDynamicObjectToObject(Fire[playerid], Balloon[playerid], 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 1);
        AttachDynamicObjectToObject(Fire1[playerid], Balloon[playerid], 0.0, 0.0, 4.0, 0.0, 0.0, 0.0, 1);
       
        SendClientMessage(playerid,COLOR_GREENZ,"Press the following keys to control the hot air balloon");
        SendClientMessage(playerid,COLOR_GREENZ,"~k~~PED_SPRINT~+~k~~CONVERSATION_YES~ (Move Balloon Up)");
        SendClientMessage(playerid,COLOR_GREENZ,"~k~~PED_SPRINT~+~k~~CONVERSATION_NO~ (Move Balloon Down)");
        SendClientMessage(playerid,COLOR_GREENZ,"~k~~VEHICLE_ENTER_EXIT~+~k~~CONVERSATION_YES~ (Move Balloon Forward)");
        SendClientMessage(playerid,COLOR_GREENZ,"~k~~VEHICLE_ENTER_EXIT~+~k~~CONVERSATION_NO~ (Move Balloon Back)");
        SendClientMessage(playerid,COLOR_GREENZ,"~k~~SNEAK_ABOUT~+~k~~CONVERSATION_NO~ (Move Balloon Left)");
        SendClientMessage(playerid,COLOR_GREENZ,"~k~~SNEAK_ABOUT~+~k~~CONVERSATION_YES~ (Move Balloon Right)");
        PlayerIn[playerid][BalloonPlayer] = 1;
    }
    return 1;
}
Not working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)