03.12.2010, 21:39
Alright. I have this command that is suppose to add neon lights under your vehicle. It's suppose to detect what model your vehicle is and based on that, it should put the neon lights underneath the vehicle. Now the command it looks like it works, but nothing happens in-game. Can somebody help me out here?
pawn Код:
if(strcmp(cmd, "/neon", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] > 0)
{
new id;
id = GetVehicleModel(playerid);
new neon;
if(id == 400)
{
neon = CreateObject(18648,0,0,0,0,0,0,283);
AttachObjectToVehicle(neon, id, 0.2,0,0.71,0,0,0);
}
if(id == 401)
{
neon = CreateObject(18648,0,5,25,0,0,0,283);
AttachObjectToVehicle(neon, id, 0.2,0,0.71,0,0,0);
}
}
return 1;
}
}