Help me fast..
#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


Messages In This Thread
Help me fast.. - by Ironboy - 24.03.2011, 20:07
Re: Help me fast.. - by TheYoungCapone - 24.03.2011, 20:08
Re: Help me fast.. - by Ironboy - 24.03.2011, 20:10
Re: Help me fast.. - by Vince - 24.03.2011, 20:13
Re: Help me fast.. - by Davz*|*Criss - 24.03.2011, 20:15
Re: Help me fast.. - by TheYoungCapone - 24.03.2011, 20:16
Re: Help me fast.. - by Ironboy - 24.03.2011, 20:29

Forum Jump:


Users browsing this thread: 1 Guest(s)