Opposite
#5

Quote:
Originally Posted by MarvinPWN
Посмотреть сообщение
PHP код:
CMD:balloon(playerid,params[])
{
    if(
PlayerInfo[playerid][pAdmin] == 7)
    {
        if(
PlayerInfo[playerid][pVip] == 0)return 0;
        new 
Float:x,Float:y,Float:z,world,interior;
        
GetPlayerPos(playerid,x,y,z);
        
SetPlayerPos(playerid,x,y,z+3.5);
        
world GetPlayerVirtualWorld(playerid);
        
interior GetPlayerInterior(playerid);
        
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(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,"Use the following keys to control the controllable object");
        
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;
}
CMD:destroyballoon(playerid,params[])
{
    if(
PlayerInfo[playerid][pAdmin] == 7)
    {
        if(
PlayerIn[playerid][BalloonPlayer] == 0)return GameTextForPlayer(playerid,"~g~you dident spawned any balloon",4500,3);
        
DestroyDynamicObject(Balloon[playerid]);
        
DestroyDynamicObject(Fire[playerid]);
        
DestroyDynamicObject(Fire1[playerid]);
        
PlayerIn[playerid][BalloonPlayer] = 0;
    }
    return 
1;

Try this. If it doesn't work you should try this without the streamer.
This means:
CreateDynamicObject => CreateObject
AttachDynamicObjectToObject => AttachObjectToObject
DestroyDynamicObject => DestryObject
Ok,now the balloon does not appear on deatroy command so it means destroy command is fixed but the balloon does not appear on the /balloon command
Reply


Messages In This Thread
Opposite - by Fancy - 06.08.2015, 09:26
Re: Opposite - by Gammix - 06.08.2015, 10:52
Re: Opposite - by Fancy - 06.08.2015, 11:38
Re: Opposite - by MarvinPWN - 06.08.2015, 11:47
Re: Opposite - by Fancy - 06.08.2015, 12:22
Re: Opposite - by MarvinPWN - 06.08.2015, 12:28
Re: Opposite - by Fancy - 06.08.2015, 12:41

Forum Jump:


Users browsing this thread: 1 Guest(s)