11.02.2013, 13:48
Код:
CMD:policija(playerid,params[]) { SendClientMessage(playerid, 0xAA3333AA, "Uћdėta"); if(PlayerInfo[playerid][pPadmin] == 1) SetPVarInt(playerid, "zasibys", zasibys = CreateObject(19483,0,0,0,0,0,0)); SetPVarInt(playerid, "zasibys2", zasibys2 = CreateObject(19483,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "zasibys"), GetPlayerVehicleID(playerid), -1.07, 0.0, 0.0, 0.0, 0.0, 180.0); AttachObjectToVehicle(GetPVarInt(playerid, "zasibys2"), GetPlayerVehicleID(playerid), 1.07, 0.0, 0.0, 0.0, 0.0, 0.0); SetObjectMaterialText(zasibys, "Policija", 0, OBJECT_MATERIAL_SIZE_256x128,\ "Arial", 32, 0, 0xFFFFFFFF, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); SetObjectMaterialText(zasibys2, "Policija", 0, OBJECT_MATERIAL_SIZE_256x128,\ "Arial", 32, 0, 0xFFFFFFFF, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);