Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(DOES_CHAR_EXIST(players[index].ped)){
- if(IS_CHAR_IN_ANY_CAR(players[index].ped)){
- int pveh,nvid,tick;
- GET_CAR_CHAR_IS_USING(players[index].ped,&pveh);
- GET_NETWORK_ID_FROM_VEHICLE(pveh,&nvid);
- REQUEST_CONTROL_OF_NETWORK_ID(nvid);
- while(!HAS_CONTROL_OF_NETWORK_ID(nvid)){
- tick++;
- REQUEST_CONTROL_OF_NETWORK_ID(nvid);
- if(tick >= 200){
- CLEAR_PRINTS();
- print("Error");
- return;
- }
- WAIT(0);
- }
- Object lights;
- CREATE_OBJECT(0xD20167BE, 0.0f, 0.0f, 0.0f, &lights, 1);
- WAIT(1);
- ATTACH_OBJECT_TO_CAR(lights,pveh,0.0f,0.2,0.4,-0.2,-190,0,160.2);
- SET_OBJECT_LIGHTS(lights, true);
- SET_OBJECT_VISIBLE(lights, true);
- SET_OBJECT_INVINCIBLE(lights, 1);
- CREATE_OBJECT(0xD20167BE, 0.0f, 0.0f, 0.0f, &lights, 1);
- WAIT(1);
- ATTACH_OBJECT_TO_CAR(lights,pveh,0.0f,0.2,0.2,-0.2,-190,0,160.2);
- SET_OBJECT_LIGHTS(lights, true);
- SET_OBJECT_VISIBLE(lights, true);
- SET_OBJECT_INVINCIBLE(lights, 1);
- CREATE_OBJECT(0xD20167BE, 0.0f, 0.0f, 0.0f, &lights, 1);
- WAIT(1);
- ATTACH_OBJECT_TO_CAR(lights,pveh,0.0f,0.2,0.4,-0.2,-190,0,160.2);
- SET_OBJECT_LIGHTS(lights, true);
- SET_OBJECT_VISIBLE(lights, true);
- SET_OBJECT_INVINCIBLE(lights, 1);
- CREATE_OBJECT(0xD20167BE, 0.0f, 0.0f, 0.0f, &lights, 1);
- WAIT(1);
- ATTACH_OBJECT_TO_CAR(lights,pveh,0.0f,0.2,0.2,-0.2,-190,0,160.2);
- SET_OBJECT_VISIBLE(lights, true);
- SET_OBJECT_INVINCIBLE(lights, 1);
- SET_OBJECT_VISIBLE(lights, true);
- CLEAR_PRINTS();
- print("Blue Neons have been Attached To Players Car");
- }
- }
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment