Help me fast..
#1

I have made a neon and it is working fine.
Is it permenent? it will not go?Is there any way to remove it?
Reply
#2

not sure what ur asking you say is there any way to remove it yea delete it from ur script.
Reply
#3

hmm not that.
look this code
pawn Код:
CMD:neon(playerid,params[]) {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFFFFAA, "Neon installed");
    return 1;}
this is the command.If i use it it will not go.I want it to be removed, when a player use a command
Reply
#4

pawn Код:
DestroyObject(GetPVarInt(playerid, "neon"));
DeletePVar(playerid, "neon");
Reply
#5

Hmm dude try wiki,

DestroyObject or some thing i don't remember the code, and yeah it is not permanent.
Reply
#6

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
hmm not that.
look this code
pawn Код:
CMD:neon(playerid,params[]) {
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFFFFAA, "Neon installed");
    return 1;}
this is the command.If i use it it will not go.I want it to be removed, when a player use a command
Hmm your code looks right maybe you have something else thats messing with it. BTW heres one that i use
Код:
if(strcmp(cmdtext,"/blueneon",true)==0)
{
     SetPVarInt(playerid, "Status", 1);
     SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0));
     SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0));
     AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
     AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
     return 1;
}
Код:
if(strcmp(cmdtext,"/removeallneon",true)==0)
{
     DestroyObject(GetPVarInt(playerid, "neon4"));
     DeletePVar(playerid, "Status");
     DestroyObject(GetPVarInt(playerid, "neon5"));
     DeletePVar(playerid, "Status");
     return 1;
}
Reply
#7

ok ty
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)