Car attachment
#3

Quote:
Originally Posted by Matess
Посмотреть сообщение
pawn Код:
if (strcmp("/policelight", cmdtext, true, 11) == 0)
{
new light = CreateObject(18646,2001.195679, 1547.113892, 14.283400, 0.0, 0.0, 96.0)
new vehmodel = GetVehicleModel(GetPlayerVehicleID(playerid));
if (vehmodel == 541 || vehmodel == 560)
{
AttachObjectToVehicle(light, GetPlayerVehicleID(playerid), 0, 0, 2, 0, 0, 0)
}
return 1;
}
you must @define light
& and the '' ; '' ^^



PHP код:
if (strcmp("/policelight"cmdtexttrue11) == 0)
{
    new 
light,vehmodel,v;
    
light CreateObject(18646,2001.1956791547.11389214.2834000.00.096.0);
    
GetPlayerVehicleID(playerid);
    
vehmodel GetVehicleModel(v);
    if ((
vehmodel == 541 || vehmodel == 560)) {
                    
AttachObjectToVehicle(lightv002000);
                         
    }
    return 
1;

Reply


Messages In This Thread
Car attachment (+REP!) - by Bek_Loking - 28.05.2014, 18:49
Re: Car attachment - by Matess - 28.05.2014, 20:47
Re: Car attachment - by Lacamora - 28.05.2014, 21:05
Re: Car attachment - by Eth - 28.05.2014, 21:06

Forum Jump:


Users browsing this thread: 1 Guest(s)