25.01.2016, 05:40
Quote:
#include <sscanf2> |
Quote:
CMD:addsirene(playerid, params[]) { for (new vid; vid < 2000; vid++) { if (sscanf(params, "i", vid)) return SendClientMessage(playerid, 0x00FF00FF, "USE: {ffffff}/addsirene [ID veнculo]"); { AVehicleData[vid][NeonLeft] = CreateObject(18646,0,0,0,0,0,0); AVehicleData[vid][NeonRight] = CreateObject(18646,0,0,0,0,0,0); AttachObjectToVehicle(AVehicleData[vid][NeonLeft], vid, -0.5, 0.0, 0.80, 0.0, 0.0, 0.0); AttachObjectToVehicle(AVehicleData[vid][NeonRight], vid, 0.5, 0.0, 0.80, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0x00FF00FF, "CMD: Sirene adicionada ao veнculo {FFFFFF}ID:%i{00FF00}", vid); } } return 1; } |