AttachObjectToVehicle (object dosent appear) | i want to make a /stealth cmd
#1

i putted attachobjecttovehicle in a command and then when i am in a leviathan, i type /tieboard, then it dosent appear D: and when i am in a leviathan it says "You must be in a leviathan to use this command." but it should not say that D:

plz fix the code

Код:
 COMMAND:tieboard(playerid,params[])
{
   if(IsPlayerInAnyVehicle(playerid))
   {
   	  if(GetVehicleModel(417)) // THIS IS FOR LEVIATHAN (HELI)
         {
             new myobject1 = CreateObject(3117,0,0,-1000,0,0,0,100);
            AttachObjectToVehicle(myobject1, 417, -4.425000,0.524999,0.075000,0.000000,0.000000,0.000000);
            new myobject2 = CreateObject(3117,0,0,-1000,0,0,0,100);
            AttachObjectToVehicle(myobject2, 417, 4.200001,0.000000,0.000000,0.000000,0.000000,0.000000);
        }
    	else SendClientMessage(playerid, COLOR_RED, "You must be in a leviathan to use this command.");
    }
    else SendClientMessage(playerid, COLOR_RED, "You must be in a vehicle.");
    return 1;
}
|||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||

i dont know what is the code to hide the player name

if someone types /stealth it should hide his dot on the map and his name

plz help me with /stealth.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)